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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / API to convert a Team ...
Power Automate
Answered

API to convert a Team from public to private

(0) ShareShare
ReportReport
Posted on by 102

Hi!

I have 2 questions I thought I must find an answer here

 

1. I am building a Teams provisioning App

 Teams privacy- (Public or Private)

  Teams lifecycle- (365 days or 180 days)

 

I have done a lot of research and testing to  use M Graph with update Team function so I can update the visibility to "private" from the properties of the Team but it does not seem to work. Used get and pach function cant make it work

Get-https://graph.microsoft.com/v1.0/teams/@{TeamId}

Patch-https://graph.microsoft.com/v1.0/teams/@{TeamId}

{
"id": "TeamId",
"visibility": "private",
}

 

2. Is there any way to automate the lifecycle of the (Group so when is chosen 180 days it changes the group in Azure?

 

https://graph.microsoft.com/v1.0/groupLifecyclePolicies

{
"groupLifetimeInDays": 180,
"managedGroupTypes": "@{outputs('GroupID')}",
"alternateNotificationEmails": "xxxxxxxx"
}

 

Is it true that there are limitation in creating lifecycle policies?

 

 

Categories:
I have the same question (0)
  • Verified answer
    titawitch Profile Picture
    102 on at

    I found out the group privacy...I used   https://graph.microsoft.com/v1.0/groups{GroupId} instead of the https://graph.microsoft.com/v1.0/teams/@{TeamId} and it worked.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 210 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 175

Last 30 days Overall leaderboard