cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mgodby
Post Patron
Post Patron

How to create a sharepoint site that has a group? Or how to add a group to an existing sharepoint site?

Hello. I have a Flow that creates a SharePoint site based on this documentation: https://docs.microsoft.com/en-us/sharepoint/dev/apis/site-creation-rest

 

But I notice that these are the only options for the type of site you can create:

Screenshot 2021-06-07 190706.png

 

The one I'm using is the Team Site. But the issue is that it is non-group associated. Is there a way to change that or are these the only options we have?

Here is the action I use to create the SharePoint site:
Screenshot 2021-06-07 185940.png

This works, the only issue now is I'm trying to add Owners, Members and Visitors...and this is only doable if the Site has an associated group. 

I was following this article on how to add users to a SharePoint Site: https://normyoung.ca/2020/10/22/add-and-remove-users-to-a-sharepoint-site-using-microsoft-lists-and-...

 

Screenshot 2021-06-07 201429.png

 

This will work for a regular SharePoint site that I create manually, but not for the Site that I create through Flow. Is there a way to add a group to a SharePoint site or is there a way to create the group when the site is created? 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
rsaikrishna
Dual Super User
Dual Super User

@Mgodby 

 

We cannot add a group to a new or existing SharePoint Site. But, if you create a new Office 365 Group, you will automatically get SharePoint Site with it.

 

With MS Graph v1.0, you can create Office 365 Groups.

 

Check the following reference:

https://docs.microsoft.com/en-us/graph/api/resources/groups-overview?view=graph-rest-1.0

 

You can use HTTP action (Premium) to call MS Graph API.

 

Please give a try and let me know if you have any questions.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

View solution in original post

1 REPLY 1
rsaikrishna
Dual Super User
Dual Super User

@Mgodby 

 

We cannot add a group to a new or existing SharePoint Site. But, if you create a new Office 365 Group, you will automatically get SharePoint Site with it.

 

With MS Graph v1.0, you can create Office 365 Groups.

 

Check the following reference:

https://docs.microsoft.com/en-us/graph/api/resources/groups-overview?view=graph-rest-1.0

 

You can use HTTP action (Premium) to call MS Graph API.

 

Please give a try and let me know if you have any questions.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,363)