Assign custom permission role through share

cancel
Showing results for 
Search instead for 
Did you mean: 
davedavedave
Partner

Assign custom permission role through share

Jump to solution

Trying to create my own custom permission role. The documentation says: 

"The UI labels for the ACME roles are controlled by the following properties:

roles.webpublisher=Web Publisher
roles.acmecoordinator=ACME Coordinator
roles.acmecollaborator=ACME Collaborator
roles.acmeeditor=ACME Editor
roles.acmecontributor=ACME Contributor
roles.acmeconsumer=ACME Consumer

That is all that is needed to add new custom permissions."

After I assign my custom role through an API call it indeed shows up like defined in the roles property, however I would like my custom role to also be selectable in the dropdown when assigning permissions through share. Unfortunately I just see the 4 default roles there. How can I add my custom role to that list?

1 Solution

Accepted Solutions
davedavedave
Partner

Re: Assign custom permission role through share

Jump to solution

Of course I find the solution right after posting, based of a comment in this github repo:

<!-- copied from sitePermissionDefinitions.xml;
need everything in the permissionSet, even though only change SiteCollaborator -->

When I did this and just added my own custom role, it suddenly shows up and becomes selectable. I can't delete my post so leaving this solution here for other devs in the future.

 

View solution in original post

1 Reply
davedavedave
Partner

Re: Assign custom permission role through share

Jump to solution

Of course I find the solution right after posting, based of a comment in this github repo:

<!-- copied from sitePermissionDefinitions.xml;
need everything in the permissionSet, even though only change SiteCollaborator -->

When I did this and just added my own custom role, it suddenly shows up and becomes selectable. I can't delete my post so leaving this solution here for other devs in the future.