cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

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

Raccone
12-Amethyst

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

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

ACCEPTED SOLUTION

Accepted Solutions
nmilleson
17-Peridot
(To:Raccone)

@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. 

View solution in original post

3 REPLIES 3
nmilleson
17-Peridot
(To:Raccone)

@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. 

Raccone
12-Amethyst
(To:nmilleson)

Hello @nmilleson,

 

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

 

Thansk

slangley
23-Emerald II
(To:nmilleson)

Hi @Raccone.

 

If you are satisfied with the response from @nmilleson, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Thank you for your participation in our community.

 

Regards.

 

--Sharon

Announcements


Top Tags