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? 

5-Regular Member
March 4, 2021

Do you mean menu were there tagged with the same project and they did not reflect the permission from the execution of SetEntityPermission service on that project name? You need to make sure that every entity in that mashup should have required permission. When you open the mashup you can press F12 and see for which particular permission it is failing. You can assign that permission to user manually or may be tag that entity with the same project name and assign it using the service again.

 

Let me know if above statement is not clear to you, i can attach some screenshot for how to identify which permission is failing form F12.