cancel
Showing results for 
Search instead for 
Did you mean: 

Assign custom permission role through share

davedavedave
Champ on-the-rise
Champ on-the-rise

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 ACCEPTED ANSWER

davedavedave
Champ on-the-rise
Champ on-the-rise

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 answer in original post

1 REPLY 1

davedavedave
Champ on-the-rise
Champ on-the-rise

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.