I easily created a public channel in Microsoft Teams using Flow and using the Teams connector / action.
How can I create a private channel though using flow? Is this possible?
Yusha, i agree with @RobElliott , however it is possible to create custom connector and create private channel using graph API. Main difference is you have to define membership type as private and add members to it.
Post request example is here:
https://docs.microsoft.com/en-us/graph/api/channel-post?view=graph-rest-1.0&tabs=http
Hi @reatonfbcs what do you mean with "accessing private channels"?
What do you want to achieve? Get a list of Private channels associated with a team?
What about accessing private channels from Flows? It appears all I can see is General.
@trashanger - just to clarify a bit.
My original question was
How can I create a private Teams channel using the Teams Connector in Power Automate
Microsoft replied; at this time that is not supported
@jvdlinden pointed out that though it is not supported, it definitely can be done using HTTP Request module in Power Automate. Unfortunately this requires three things;
1) Admin access to Microsoft Graph API for your org
2) Using a API that is in a BETA version (be scared for your jobs that run in a production environment)
3) Knowledge of building HTTP requests / receiving them etc
So - we chose personally not to proceed forward until Microsoft makes this feature available through the Teams connector in Power Automate. If this is a must have requirement though, I would suggest following @jvdlinden solution.
Hi,
So there's no other way than having an app in Azure AD ?
Thanks,
Hello @P_SA ,
Unfortunately I cannot provide a ZIP, but I will try as best I can to help you out.
On beforehand, please note that this feature uses the Microsoft Graph beta endpoint, which should not be used for production applications because they are subject to change.
Please review https://docs.microsoft.com/en-us/graph/api/overview?view=graph-rest-beta for additional details.
Now follow these steps: https://docs.microsoft.com/en-us/graph/auth-v2-service
This will explain how to (1) register your app in Azure AD, (2) how to configure the appropriate permissions for Microsoft Graph, (3) how to provide admin consent for the application (the global admin can also navigate to Azure AD, open your app registration and provide consent), (4) obtain an access token from Microsoft Graph and (5) how to call the Microsoft Graph using the access token.
How this looks like from my Azure Logic Apps, please review the screenshots below:
Use the HTTP action to call Microsoft Graph for an access token
red values are obtained from your app registration and after generating a client secret (there may be better ways to increase security for these types of calls)
Use "Parse JSON" action to parse the JSON payload coming back (response), simply use the blue link "Use sample payload to generate schema":
Or use the schema below:
{
"properties": {
"access_token": {
"type": "string"
},
"expires_in": {
"type": "integer"
},
"ext_expires_in": {
"type": "integer"
},
"refresh_token": {
"type": "string"
},
"token_type": {
"type": "string"
}
},
"type": "object"
}
Now you have the access token, I am retrieving a user profile details from "Office 365 Users" to obtain the user id by providing the email address of the user:
Finally I am calling the Microsoft Graph beta endpoint to actually add the private channel:
Provide the Office 365 Group ID, here I am using a dynamic value.
Make sure there is one (1) white space between token_type and access_token
Provide the body JSON object, here I am adding two individual users as an owner to the private channel.
Hope this helps.
@jvdlinden Hey, do you mind sharing the export .zip file of the flow that you have created. ? It will really help.. thanks.
I have tested out the Office Graph approach. It actually does work.
The user performing the HTTP POST will also be the owner of the Private Channel. You'll need to provide additional owners in the body if required.
@Anonymousthanks for your reply.
Short answer: no.
I am about to try this feature out in the upcoming days because I really need the private channel to be created automatically.
I disagree about your remark, premium features are actually solutions... The question is: cost vs benefits?
I will update the thread once I know if it really technically works.
@jvdlinden Unfortunately 'HTTP Requests' are a premium feature of Power Automate, so this isn't really a valid solution. Did you actually try the solution that you linked? I think, at one point, I did try it - and it did not work. Also note that the Microsoft employee above confirmed that they do not support this in Power Automate, he didn't mention the premium feature.
stampcoin
81
Michael E. Gernaey
70
Super User 2025 Season 1
David_MA
48
Super User 2025 Season 1