In the Dashboard below I want to hide the Save button from anyone not in the Administrator Security Group.
The visibility of a button on a dashboard is controlled by the display format component property.
isVisible = False The button will not be seen.
isVisible = True The button will be seen.
What we want to do is toggle the isVisible value of True or False of this button, based on if a user is in the Administrator security group. This will toggle the visibility of the button on or off based on the security rights of the user.
How to do this?
One way is through the use of a Dashboard XFBR and the BRapi.Security.Authorization.IsUserInAdminGroup function. This function returns a Boolean True or False value when passed a UserName.
5. The final step is to call this XFBR in the isVisible Display Format property of the Button. (don’t forget to save your change)
Now if a user who is not an Administrator navigates to this dashboard, they will not see the Save Button.
Want to learn more about OneStream Software? Please complete the form below and we'll get back to you shortly.
OneStream CPM
OneStream aligns to your business needs and changes more quickly and easily than any other product by offering one platform and one model for all financial CPM solutions. OneStream employs Guided Workflows, validations and flexible mapping to deliver data quality confidence for all collections and analysis while reducing risk throughout the entire auditable financial process.