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
Super User
Super User

@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
Super User
Super User

@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

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,675)