The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.

Forum Discussion

HoneyGulati's avatar
HoneyGulati
New Contributor III
2 years ago
Solved

How to update Application Security Role - OpenApplication via BR

Hi,

I would like to explore the way to update OpenApplication security role via Business Rule.

 

Any help/suggestion would be appreciated. 

  • This may give you a start for approximately where the properties are hidden. Note that I have not tested this code but it's similar to some other code I happened to be working on recently so it should be close.

    Dim secRole As Role = BRAPi.Security.Admin.GetRole(si,"OpenApplication").Role
    secRole.AccessGroupUniqueID = BRApi.Security.Admin.GetGroup(si,"TestGroup").Group.UniqueID
    BRApi.Security.Admin.SaveRole(si,secRole)

     

2 Replies

  • This may give you a start for approximately where the properties are hidden. Note that I have not tested this code but it's similar to some other code I happened to be working on recently so it should be close.

    Dim secRole As Role = BRAPi.Security.Admin.GetRole(si,"OpenApplication").Role
    secRole.AccessGroupUniqueID = BRApi.Security.Admin.GetGroup(si,"TestGroup").Group.UniqueID
    BRApi.Security.Admin.SaveRole(si,secRole)