Skip to main content
Community site session details

Community site session details

Session Id : Y9QfGC6HbR1KQyb5QPeLif
Power Automate - Building Flows
Unanswered

New SharePoint Site Owner

Like (0) ShareShare
ReportReport
Posted on 17 Apr 2023 02:31:33 by 103

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?

  • randomsky Profile Picture
    103 on 06 Jun 2023 at 07:07:57
    Re: New SharePoint Site Owner

    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

  • randomsky Profile Picture
    103 on 25 Apr 2023 at 05:46:10
    Re: New SharePoint Site Owner

    @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.

  • Nived_Nambiar Profile Picture
    17,949 Super User 2025 Season 2 on 17 Apr 2023 at 04:27:13
    Re: New SharePoint Site Owner

    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
    103 on 17 Apr 2023 at 04:01:54
    Re: New SharePoint Site Owner

    @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
    17,949 Super User 2025 Season 2 on 17 Apr 2023 at 03:24:02
    Re: New SharePoint Site Owner

    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 🙂

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete