Hi All,
I am working on functionality where from CRM when ever any customer is created a customer folder prefixed with customer name to be created in SharePoint site. Once the customer folder is created he will added as only authorized person to view this folder.
To do this I used SharePoint Rest API . I am trying to connect SharePoint cloud from Microsoft Dynamics Plugin. I am using SharePoint Rest API for the connectivity.
Registered add-in in SharePoint And granted permission to allow for web/List site collection.I am able to get the access_token from SharePoint site but when i am trying to query any SharePoint object(Folder) its not allowing me to do. As a response to my query its returning response as "Attempted to perform an unauthorized operation."
API Url fomed : ./sites/dev/_api/Web/GetFolderByServerRelativeUrl('/Customer/Shobhit 1')?$expand=Folders,Files
Here Customer is a parent folder under which we ill be having individual customer folders which is (Shobhit 1).
Also please tell me if i have to remove or add any users for Managing the folder access permission is it possible through Rest API.
Appreciate any help here.
Thanks,