Currently (As of 2021-09-27), there is no Out of the box connector for Power Apps that will get you employeeId. The reason is that we need to query the beta version of Microsoft Graph, as it is not query-able in the version 1.0 of the endpoint. There is hope, the new Office 365 Users Connector has a new version of Get my profile (V2) that queries the new version of the Graph interface, and allows us to select employeeId
, as well as almost everything else available. The downside is that it returns a GraphUser_V1 object. So, even though the API call returns the employeeId
, since Power Apps is Strongly Typed, we cannot reference employeeId
as it's not a part of the GraphUser_V1
object.
Power Apps may not be able to pull the value, but Power Automate can. As a POC to get you started:
- In Power Apps, create a button with the Action being running a Power Automate Flow.
- Create a new flow "Power Apps button" called "GetEmployeeId".
- In Power Automate, create a new step: Get my profile (V2).
- Under advanced options set Select fields to
employeeId
- Create a new step: Parse JSON
- Set Content to the
body
of Get my profile (V2)
:
@{outputs('Get_my_profile_(V2)')?['body']}
- Set Schema to:
{
"type": "object",
"properties": {
"@@odata.context": {
"type": "string"
},
"@@odata.id": {
"type": "string"
},
"employeeId": {
"type": "string"
}
}
}
- Create a new step: Respond to a PowerApp or flow
- Add an output type Text:
- Enter title :
EmployeeId
- Enter in a value to respond :
@body('Parse_JSON')?['employeeId']
- Save the Power Automate flow and test it. You will have to approve O365 access permissions. The whole flow should look like this:

- Back in Power Apps, Connect your new flow to the app.
- Set your
Button1.OnSelect
to: Set( varEmployeeID, GetEmployeeId.Run())
- Create a label with the
Label1.Text
set to: varEmployeeID.employeeid
- Run the app and click the button to test.