Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
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
Solved! Go to Solution.
@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 ,
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.
Hello @nmilleson,
It looks like a good solution for me, I will try it out and come back if needed!
Thansk
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