web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / New SharePoint Site Owner
Power Automate
Unanswered

New SharePoint Site Owner

(0) ShareShare
ReportReport
Posted on by 110

I'm using the SharePoint HTTP request /_api/spsitemanager/create to create a new SharePoint site and it works fine if I use the "Owner" attribute as user@domain.com in the Body of the request. I would now like to specify an AAD Security Group as the owner of the site during it's creation. Is that possible?

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @randomsky 

     

    I think that is possible. Specify group's email id there in owner field, hope that would works

     

    Mark it as solution if it resolves your query 🙂

     

  • randomsky Profile Picture
    110 on at

    @Nived_Nambiar , since this is a security group it doesn't have an associated email address. I tried using the AAD object ID of that security grou but it doesn't seem to work with that.

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @randomsky 

     

    Did you add body in HTTP request like below

     

     

    {
     "request": {
     "__metadata": {
     "type": "SP.SPSiteCreationRequest"
     },
     "Title": "New Site",
     "Url": "https://contoso.sharepoint.com/sites/NewSite",
     "Description": "This is a new site",
     "SiteDesignId": "6142d2a0-63a5-4ba0-aede-d9fefca2c767",
     "WebTemplate": "STS#3",
     "TimeZoneId": 4,
     "OwnerIdentifier": "object-id-of-security-group"
     }
    }
    
    

     

    Add the object id in OwnerIdentifier field

     

     

    Hope this helps 🙂

  • randomsky Profile Picture
    110 on at

    @Nived_Nambiar , getting this error when I try using the above:

    The property '__metadata' does not exist on type 'Microsoft.SharePoint.Portal.SPSiteCreationRequest'. Make sure to only use property names that are defined by the type.

  • randomsky Profile Picture
    110 on at

    Managed to get this working by adding another step where I send a POST request to _api/web/SiteGroups(3)/Users with the ID of the AD group

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard