1 vote
Accepted

Users with contribute permission can call REST API to Break Role Inheritance , but can not make a REST API call to get all role assignments

I just tried the same scenario to get the role assignments of list items using power automate flow: Here are my findings: User Permissions Flow works/Error Contribute Error Edit Error Design ...
  • 30.5k
1 vote
Accepted

Getting a file by serverrealtive url is raising this error "Server relative urls must start with SPWeb.ServerRelativeUrl"

"Server relative" means you have to start the URL after the host name, so the server relative URL of that file would be /sites/ABC/Lists/Invoices/Attachments/1/PDF_200001.pdf What you ...
  • 12.3k
1 vote
Accepted

Capture the users clicks inside our SharePoint modern home page (how click on quick link modern news, etc..)

You can try adding SPFX in that page. As an example I have called a function and capturing the quick links. Please note that I am using Quiklinks of compact layout option. In SPFX , call the custom ...
  • 543
1 vote

Power Shell script which runs on all the root folders of a document library and set unique permsion to all users to have read-only

SharePoint Permissions are handled via RoleAssignments. This is true for both Users and Groups. I haven't used PS-CSOM alot, but you can Access the RoleAssignments via $SubFolder.RoleAssignments. ...
  • 13

Only top scored, non community-wiki answers of a minimum length are eligible