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 / Premissions to Create ...
Power Automate
Unanswered

Premissions to Create SharePoint Site with Power Automate

(0) ShareShare
ReportReport
Posted on by 6

Hello Out there

 

Im creating a Flow that creates a Sharepoint site when the Keyword "News" is mentioned. You can then enter a Title and the News Itself. This shoud then go into the site with the Dynamic-content.

Krebs_1-1707211327690.pngKrebs_0-1707211314772.png

Krebs_2-1707211340948.png

 

This flow fails all the time due to not Having premisions, but i have created the Teams. (Error 401) I dont understand why it isnt working because i created the Team and the Sharepoint.

Krebs_3-1707211401725.png

Is there a Way to give the Bot or myself more Rights to Create the Sharepoint Site

 

This Is the help with i created the HTTPS Blcok

https://michelcarlo.com/2021/06/19/create-a-modern-sharepoint-site-using-power-automate/

 

This is the raw Input:

Krebs_0-1707212558639.png

This is the raw Output

Krebs_1-1707212593178.png

 

 

If you have Questions please ask

If this is the wrong Board im sorry

Thanks alot if Anyone can help

 

Greetings Kebs

 

 

Tags / Lable

Powerautomate, Power Automate, Premissions, Create Sharepoint Site, Error 401, Missing Premissions,

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Krebs,

     

    I see in the screenshot of the error that you have an URI which starts with a white space (which got encoded to %20). In other words your are using '%20_api' instead of '_api' in your URI of the Send an HTTP request to SharePoint action.

     

    Can you remove that white space from your URI field and try again?

  • Krebs Profile Picture
    6 on at

    Hello @Expiscornovus

    Thanks for the sugestion

     

    Unfortunately it dint work but the error message did change from Error 401 to Error 404

     

    Raw Input:

    Krebs_0-1707309733685.png

     

    Raw Output:

    Krebs_1-1707309742422.png

     

    Greetings Krebs

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Krebs,

     

    Can you also remove web from the Uri?

     

    The Uri should be

    _api/SPSiteManager/create

     

    Instead of

    _api/web/SPSiteManager/create
  • Krebs Profile Picture
    6 on at

    Hello @Expiscornovus 

     

    In Power Automator it seems to have worked but in Sharepoint the is no new Site.

    Krebs_4-1707396967450.pngKrebs_3-1707396936676.png

     

    Raw Input

    Krebs_1-1707396885203.png

    and Request

    Krebs_6-1707397252297.png

     

     

    Raw Output

    Krebs_0-1707396877510.png

     

    Thanks for your contiued Help

    Greetings Krebs

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Krebs,

     

    I see the URL in the Body of your Send an HTTP request to SharePoint action contains an invalid site url for your newly created site.

     

    It does not contain the new site name and you have also included the SitePages library into the url (please remove that part of the link).

     

    Try something like below.

    Replace the <newsitename>, <yourtenant>, <your description> and <your sitedesignguid> by your values/ variables/dynamic content.

     

    {
     "request": {
     "Title": "<newsitename>",
     "Url":"https://<yourtenant>.sharepoint.com/sites/<newsitename>",
     "Lcid": 1033,
     "ShareByEmailEnabled":false,
     "Description":"<your Description>",
     "WebTemplate":"SITEPAGEPUBLISHING#0",
     "SiteDesignId":"<your sitedesignguid>",
     "Owner":"<owner@yourtenant.onmicrosoft.com>",
     "WebTemplateExtensionId":"00000000-0000-0000-0000-000000000000"
     }
    }

     

     

    Btw, here is the Microsoft documentation of the REST API method as a reference:

    https://learn.microsoft.com/en-us/sharepoint/dev/apis/site-creation-rest

     

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