cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Stevenfayers
Advocate IV
Advocate IV

Trigger for "License is assigned / revoked" in Microsoft 365 admin center / portal

Office / Dynamics / 365 licences are assigned / revoked from users in Microsoft 365 admin center. Is there a trigger available to start a flow when assign or revoke / remove action is performed and a way to get the current licences assigned to the user?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Gopala_Krishna
Solution Sage
Solution Sage

@Stevenfayers 

 

You can achieve this scenario, but is a little complicated than usual.

For this you have to make use of the Graph API. Using the Graph API you will be able to extract the license details of the user and also be able to trigger flow using Delta Query for modifications or changes in license assignment.

 

For this you have to create a custom connector. 

Insights related to how to create custom connector for graph API and query are shared in documents provided below.

 

List licenseDetails - Microsoft Graph v1.0 | Microsoft Docs - Authentication and authorization basics for Microsoft Graph - Microsoft Graph | Microsoft Docs - Build a custom connector for Microsoft Graph API - Power Platform Community

 

If the information shared helps, please consider giving a thumbs up 👍 and mark solution as resolved.

View solution in original post

2 REPLIES 2
Gopala_Krishna
Solution Sage
Solution Sage

@Stevenfayers 

 

You can achieve this scenario, but is a little complicated than usual.

For this you have to make use of the Graph API. Using the Graph API you will be able to extract the license details of the user and also be able to trigger flow using Delta Query for modifications or changes in license assignment.

 

For this you have to create a custom connector. 

Insights related to how to create custom connector for graph API and query are shared in documents provided below.

 

List licenseDetails - Microsoft Graph v1.0 | Microsoft Docs - Authentication and authorization basics for Microsoft Graph - Microsoft Graph | Microsoft Docs - Build a custom connector for Microsoft Graph API - Power Platform Community

 

If the information shared helps, please consider giving a thumbs up 👍 and mark solution as resolved.

ajayravi-94
Frequent Visitor

Hi All,

 

@Stevenfayers - Were you able to trigger a Power Automate when the license was assigned/revoked using a custom connector?

 

@Gopala_Krishna - I am working on a solution where we need to write the license name information to a field in Dynamics 365 User Table. Is that possible using a custom connector for graph API?

 

Thanks,

Ajay

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.

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,363)