cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
titawitch
Helper I
Helper I

APi to change the M 365 group Lifecycle and Set sensitivity label

Hi !

 

I Am using Power Automate to provision teams. 

Is there any ways to change M 365 group life cycle and Group sensitivity Label when the Team get created  through the flow?

2 REPLIES 2
v-bofeng-msft
Community Support
Community Support

Hi @titawitch ,

 

I'm afraid there is no such an out-of-box action can meet your needs. But you could add specific groups to a lifecycle policy by calling a graph API in flow:

 

POST https://graph.microsoft.com/v1.0/groupLifecyclePolicies/{id}/addGroup
Content-type: application/json

{
  "groupId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
}

 

I think this link will help you a lot:

 

groupSettingTemplate resource type - Microsoft Graph v1.0 | Microsoft Docs

 

https://social.technet.microsoft.com/wiki/contents/articles/53583.power-automate-flow-calling-ms-gra...

 

Best Regards,

Bof 

titawitch
Helper I
Helper I

Thanks for the replay. But I don't need to add a group. The group gets created through an power app and flow. After the creation I need to set the lifecycle to 365 or 180 days based on the value that comes from the Powerapp and flow.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,145)