Skip to main content
1-Visitor
September 29, 2020
Solved

Selectively display buttons on mashup based on User/Role/Organization

  • September 29, 2020
  • 1 reply
  • 1211 views

Dear devs,

 

I am asking this question because I would like to know if it's possible to display certain buttons on a Mashup only to certain Users, and if it is, what's the best approach in doing so, i.e., filtering at User level, User Group level, or something else.

 

Thank you for your suggestions.

 

Best regards

Best answer by nmilleson

@Raccone ,

 

You can certainly do that.  Create a service with a BOOLEAN output and bind that to the 'visible' property of a button.  In that service, input the user name and use services like:

 

Users[<userName>].GetOrganizations or Users[<userName>].GetOrganizationalUnits or

Groups[<userGroupName>].GetGroupMembers

 

to determine whether or not the user should see the button. 

1 reply

nmilleson17-PeridotAnswer
17-Peridot
September 29, 2020

@Raccone ,

 

You can certainly do that.  Create a service with a BOOLEAN output and bind that to the 'visible' property of a button.  In that service, input the user name and use services like:

 

Users[<userName>].GetOrganizations or Users[<userName>].GetOrganizationalUnits or

Groups[<userGroupName>].GetGroupMembers

 

to determine whether or not the user should see the button. 

Raccone1-VisitorAuthor
1-Visitor
September 30, 2020

Hello @nmilleson,

 

It looks like a good solution for me, I will try it out and come back if needed!

 

Thansk