You can use a conditional visibility expression on each user tile to show the button only if the user is a member. Something like:
$currentObject/System.UserRoles = [%UserRole_Member%]
Then, configure the button to call a microflow and only allow Officials and Admins access to that microflow. This will hide the button for any user who does not have those roles.
EDIT: Looks like the user role token isn’t available in visibility expressions yet. This might work: a nanoflow that returns the user’s user role record matching a particular role, and then the button displayed only if that returned record exists:
Here’s how it looks in my app:
Notice how the “User” button is only visible on users who have the “User” role
I am not sure if it is possible exactly the way you want, but here’s what you could try:
Hi Michael,
you can achieve this by doing below for the entity whoes data needs to be edited u can do as below :
give access of Read and Write both to the owner ( Like Below Screen shot)
In visibility give as applicable roles
then the button will be visible only to owner
Hi Michael,
Hope this helps!
I am trying to do it over a Microflow. I am retrieving all Users from the Database and I am trying to use an XPath constraint to see which users have the UserRole Member because this is the only UserRole an Official should be able to edit. Do you happen to know the XPath constraint? I was thinking it had something to do with [id='[%UserRole_Mitglied%]'] but this just gives me the Error message "Incompatible expression types: MyFirstModule.Mitglied, System.UserRole".
I attempted to retrieve all Users from the database and I am using the XPath constraint: [System.UserRoles/System.UserRole/id='[%UserRole_Mitglied%]'] for the retrieve (Mitglied is the Member UserRole which I am trying to filter so only this can be edited for the Official). Then I have a decision where I use the newly made variable of the retrieve (MitgliedUserRole): $MitgliedUserRole = $Mitglied But this is not working for every UserRole. Maybe something similar though?