cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Everart_Araujo
Regular Visitor

How to add Employee type to "create user"

Hello folks,

 

I am trying to automate our onboarding process but can't find a solution to add this information when using "Create user", I am not a pro power automation user but I guess it is possible to automate "Employee type and Manager" maybe using customizable extension attribute from "Update user".

 

Any help would be really appreciated 🙏🙏

Everart_Araujo_0-1664003815246.pngEverart_Araujo_1-1664003897827.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @Everart_Araujo,

 

Elaiza Benitez has written a nice blogpost about setting app an application for using Graph API in a Power Automate flowHow to authenticate as an application with Microsoft Graph API with flow.



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


View solution in original post

4 REPLIES 4
Expiscornovus
Super User
Super User

Hi @Everart_Araujo,

 

A workaround could be to create the user via Graph API instead. With this approach you can add fields like employeeType in the body.


Below is an example 

This setup uses a HTTP action which is part of a premium connector and also requires you to setup an app in azure ad with the correct Graph API permissions.

 

 

{
  "accountEnabled": true,
  "displayName": "Roger Federer",
  "mailNickname": "roger",
  "userPrincipalName": "roger@contoso.onmicrosoft.com",
  "passwordProfile" : {
    "forceChangePasswordNextSignIn": true,
    "password": "yourcustompassword"
  },
"employeeType": "Best tennis player of all time"
}

 

 

createuser_viagraph.png



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Everart_Araujo
Regular Visitor

Thank's for your reply, I am using a Form to collect the responses and have 0 knowledge about Graph API, in that case, can you point a tutorial so I can get started with Graph Api and Azure add?

 

Thanks for your help mate🙏

Expiscornovus
Super User
Super User

Hi @Everart_Araujo,

 

Elaiza Benitez has written a nice blogpost about setting app an application for using Graph API in a Power Automate flowHow to authenticate as an application with Microsoft Graph API with flow.



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Everart_Araujo
Regular Visitor

Thanks a lot🥂

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (5,823)