Skip to main content
Solved

Make commandgroup visible to specific users

  • March 11, 2025
  • 1 reply
  • 29 views

Forum|alt.badge.img+4

Is it possible to make the Match All command visible only to specific users? Everyone can have access to the page however only users in 2 user groups should be able to use the command.

 

Best answer by SimonTestard

If this is linked to a specific projection action you could handle that through a permission set.

 

On PostFromPurchaseOrderHandling, you have MatchAll as an action which you grant/revoke from relevant permission sets, and then only grant the permission set where the action is granted to your required individuals.

 

 

Note: Doing this is very likely not to make the button invisible, the button might still be there, but clicking it would return an Insufficient Privileges error.

 

Making it invisible based on user is not a recommended approach, theoretically one can create a custom attribute that retuns some value on the entity against which you set your visible flag on/off, but you won’t be able to do that here as PostFromPurchaseOrder uses an assistant and therefore a virtual entity, or queries (in this case MatchingLines) to which you can’t add custom attributes.

View original

Forum|alt.badge.img+12

If this is linked to a specific projection action you could handle that through a permission set.

 

On PostFromPurchaseOrderHandling, you have MatchAll as an action which you grant/revoke from relevant permission sets, and then only grant the permission set where the action is granted to your required individuals.

 

 

Note: Doing this is very likely not to make the button invisible, the button might still be there, but clicking it would return an Insufficient Privileges error.

 

Making it invisible based on user is not a recommended approach, theoretically one can create a custom attribute that retuns some value on the entity against which you set your visible flag on/off, but you won’t be able to do that here as PostFromPurchaseOrder uses an assistant and therefore a virtual entity, or queries (in this case MatchingLines) to which you can’t add custom attributes.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings