Skip to main content
Newcomer
August 31, 2023
Solved

How to update Application Security Role - OpenApplication via BR

  • August 31, 2023
  • 1 reply
  • 0 views

Hi,

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

HoneyGulati_0-1693499192177.png

 

Any help/suggestion would be appreciated. 

Best answer by photon

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)

 

1 reply

photonAnswer
Contributor
August 31, 2023

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)

 

Newcomer
September 5, 2023

It helps and solves the problem. Thanks Photon