Announcements
Hello, I am attempting to add a user to a security group but I am receiving an error that states:
Any help would be appreciated
I saw that I was missing the single quotes around the folder name just before /Users but now getting this error.
Hi @golfnutt82
Just written an article on this https://www.damobird365.com/add-members-to-a-distribution-list/, it's a lot easier to use the add members to group action. All you need is the security group GUID, the same process applies for Distribution lists too.
Please consider accepting my answer as a solution if it helps to solve your problem.CheersDamienPlease take a look and subscribe to my YouTube Channel for more Power Platform ideas and concepts, or take a look at my website. Thanks
Forgive me - you are referring to SharePoint Security groups... 😂 I need to hit the sack
Give me a moment to look into it for you.
Damien
I think you are missing single quotes around the security group name.
https://contoso.sharepoint.com/sites/DamoBird365/_api/web/siteGroups/getByName('DamoBird365%20Owners')/users
Hi and thanks for your reply.Everything that I am doing is automated.I am creating the security permission groups based on input from the user.If the user inputs from a drop down "Secure Folder" then new library is created, site permissions are broken or disenherited and a new security group is created that is based on a the user role; in this case a contibute group is created for the library. After the role creation approval happens people can then request access to the role/security group and if approved they are added to that security group and this is where I am finding difficulty.I feel I am close.Everything is automated and being driven by HTTP requests and api REST
Hi, Yes, I found those to but it didnt help.Still digging.
I changed the URI syntax to look as follows:
Getting this error now
This worked for me
Header:
{"accept": "application/json;odata.metadata=none","content-type": "application/json"}
Body:
{'LoginName':'i:0#.f|membership|damien@abdndamodev.onmicrosoft.com'}
note the single quotes on the body - don't ask!?
Here is the success...
I had a typo I believe, uhg.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 707
Haque 475
Valantis 456