Skip to main content
1-Visitor
March 1, 2021
Solved

Give RunTime Permission to all Entities of a Project

  • March 1, 2021
  • 1 reply
  • 2931 views

Hello! 

I'm trying to give RunTime permission to a certain User Group for all the entities of a project, so I don't want to give to ALL the entities, just the specific ones from the project. I've tried using the AddCollectionRunTimePermission function but the permissions didn't change. Is there another way or function? 

Thank you so much in advance.

Best answer by DmitryTsarev

You have to assign group to the menu on the menu definition tab

Unbenannt.JPG

1 reply

5-Regular Member
March 1, 2021

you can use: Resources["EntityServices"].SetEntityPermission(params); . This takes projectName as an input, using this you can set run time permission on all of your entites which are associated with a particular project.

1-Visitor
March 3, 2021

Hello! thank you so much for your suggestion. But unfortunately, the menu entities in the mashups still won't work, do I need to give runtime permission to some Resource entities or something like that? 

17-Peridot
March 4, 2021

You have to assign group to the menu on the menu definition tab

Unbenannt.JPG