Start Provisioning of private channel site

System 0 Reputation points
2025-03-09T19:10:51.32+00:00

When creating a private channel in Teams via the Graph API, the associated channel site is not automatically created. I need a command or API call to start provisioning of the channel site without manual intervention.

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Sonny Gillissen 3,756 Reputation points Volunteer Moderator
    2025-03-09T21:14:41.6866667+00:00

    Hi System,

    Thanks for reaching out on Microsoft Q&A!

    Normally, a site for a private channel is only provisioned as soon as one clicks the ‘Files’ tab. Basically the same behaviour applies to a channel folder in ‘standard’ channels.

    However, when it comes to API calls, clicking the ‘Files’ tab isn’t something you can do. But, there is a possibility to mimic this by calling the ‘filesFolder’ API after you’ve created the private channel, triggering provisioning of the site.

    Please find the details for the ‘filesFolder’ API through the link below:

    https://learn.microsoft.com/en-us/graph/api/channel-get-filesfolder?view=graph-rest-1.0&tabs=http

    Please click ‘Accept answer’ if you think my answer is helpful. Feel free to drop additional queries in the comments below!

    Kind regards,

    Sonny


  2. mlejan 1 Reputation point
    2025-07-24T08:55:03.3166667+00:00

    Same issue here.

    Calling the FilesFolder using Graph API (https://learn.microsoft.com/en-us/graph/api/channel-get-filesfolder?view=graph-rest-1.0&tabs=http) doesn't start the private channel SharePoint site provisionning.

    I've been trying for more than one hour (every 120 sec) and nothing happens.

    As per July 22, 2025 this workaround is not valid anymore, or maybe it has been blocked.

    0 comments No comments

  3. Surendra Pandey 0 Reputation points
    2025-08-06T19:18:36.8366667+00:00

    Hi Team,

    I am having below scenarios looks like it is the same issue for me as well.

    • Created a team via Graph API.
    • Created Channel associated with team.
    • Start conversations by members into channel
    • now I want to archive the channel by teamId and channel ID:
    • To Archive channel I am using below URL:
    • URL: https://graph.microsoft.com/v1.0/teams/<team-id>/channels/<channel-id>/archive
    • Request Method: POST
    • Request Body: { "shouldSetSpoSiteReadOnlyForMembers": true }
    • But I am getting below error:
      { "error": { "code": "BadRequest", "message": "Could not update Sharepoint folder permissions / archival state because the channel site url is not available.", "innerError": { "code": "Unknown", "message": "Could not update Sharepoint folder permissions / archival state because the channel site url is not available.", "date": "2025-08-06T16:35:02", "request-id": "2987b9a3-e515-46a2-8925-240e6825f362", "client-request-id": "2987b9a3-e515-46a2-8925-240e6825f362" } } }
    • If I do manual click on file and after provision the folder, if running same archive request it's getting success. Could you please guide me how can I achieve this by code , not by manual asking user to click on File tab under channel.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.