cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
yrajendarreddy
Nintex Newbie

how to grant permissions to SharePoint group

Hi All,

i have created SharePoint group with nintex workflow. and able to add the user to the group with workflow. when i see the permissions it doesn't shows. can you suggest me how can i grant the permissions to the group?  

Labels: (1)
Tags (1)
Reply
3 Replies
cassymfreeman
Nintex Newbie

Re: how to grant permissions to SharePoint group

What doesn't show?

0 Kudos
Reply
fhunth
Nintex Newbie

Re: how to grant permissions to SharePoint group

Here is a script sample where you can use the method "addroleassignment". You must set the roledefid for your desired permission.

function setPermissionForGroup(){

$.ajax({

url: _spPageContextInfo.webAbsoluteUrl + “/_api/web/roleassignments/addroleassignment(principalid=Enter Group Id, roledefid=1073741827)",

type: "POST",

contentType: "application/json;odata=verbose",

headers: { "Accept": "application/json; odata=verbose","X-RequestDigest": $("#__REQUESTDIGEST").val(),"X-HTTP-Method": "POST" },

success: function (data) { // Returning the results alert('Contribute permission set on group'); },

error: function (data) { alert("Error: " + JSON.stringify(data)); } }); });

Here is a list of roles:

1073741829, Full Control

1073741827, Contribute

1073741826, Read

You can make the REST call on your workflow.

0 Kudos
Reply
bamaeric
Nintex Newbie

Re: how to grant permissions to SharePoint group

You can use the AddPermission web method in the Permissions.asmx web service.

Here's a link that helped me accomplish this: https://blog.sprider.org/2012/10/23/how-to-add-permissions-to-a-new-sharepoint-site-using-nintex

0 Kudos
Reply