Forum Discussion
DK_OS
8 months agoNew Contributor
What IMPORT should i use for the SECURITY updates for BRApi
Hi All,
i am new to OneStream, i tried creating BR for Security automation. below is my entire code in OS-BR.
Imports System Imports System.Collections.Generic Imports System.Data Imports Syst...
- 8 months ago
You have requested a single security group:
Dim allGroups As GroupInfo = BRApi.Security.Admin.GetGroup(si, "QA_Admin")So the error is saying that you are treating the return allGroups as a collection ie you think it contains List(Of GroupInfo) when it is a single GroupInfo. Get rid of the For loop. And as sameburn says MessageBox is not valid - use api.LogMessage for Finance BRs. And you then will be checking the name like this:
If allGroups.Member.Name.StartsWith("QA_") ThenThe message is a bit pointless though except to confirm that the security group QA_Admin exists. If you want all the security groups you want something like this:
Dim allGroups As List(Of Group) = BRApi.Security.Admin.GetGroups(si)Note the return is a list of Group not GroupInfo.
DK_OS
3 months agoNew Contributor
thank you all, i was able to achieve the solution.
I am using the Business Rule to perform the user access provisioning using BRApi for security management.
And used this BR in DAM job, added the DM to a task scheduler job to run it.
All are working fine, but in the DASHBOARD -->NAVIGATION CENTER--> SECURITY AUDIT REPORTS --> USER CHANGE AUDIT.
I cannot see the change line appearing in this report, executed by task scheduled for the DM (run by Business Rule.).
Is there a way to enable the time in this report. apart from this i see the audit data and time in TOTAL USERS, USER LIST reports.
Related Content
- 3 years ago
- 2 months ago