cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
venka91
Super User
Super User

Create O365 mailbox and assign License using PowerApps

Hi there,

 

need advise. As part of Employee On-boarding  process,  we would like to Automate the mailbox creation on O365 using power Apps. Our idea is to when the when the On-boarding request comes to IT department, on a Button click, we would like to create the mailbox and assign mailbox license.

 

Any Ideas please ?

 

I am just thinking if we can run Powershell  commands anywhere in the back-end of Power Apps to do this Job on Click of Button ?

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @venka91 ,

 

You could use canvas(custom connector) or flow(http action or custom connector) to create user mailbox and assign license .

https://docs.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&tabs=http

// The api for create user account/mailbox

 

https://docs.microsoft.com/en-us/graph/api/user-assignlicense?view=graph-rest-1.0&tabs=http

//The api for assign license.

 

Best Regards,

Wearsky

 

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @venka91 ,

 

You could use canvas(custom connector) or flow(http action or custom connector) to create user mailbox and assign license .

https://docs.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&tabs=http

// The api for create user account/mailbox

 

https://docs.microsoft.com/en-us/graph/api/user-assignlicense?view=graph-rest-1.0&tabs=http

//The api for assign license.

 

Best Regards,

Wearsky

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,519)