Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
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.
Solved! Go to Solution.
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.
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?
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.
You have to assign group to the menu on the menu definition tab
Hello @DmitryTsarev thank you for your suggestion, in fact, now is working, didn't know it was necessary given that I had already added Run Time to the group at the Permission Tab.
@mnarang Thank you for your help as well!