get-current-user
Retrieve current Microsoft 365 user details including properties, relationships, and custom extensions to manage account information and permissions.
Instructions
Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ConsistencyLevel | No | Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries | |
| select | No | Select properties to be returned | |
| expand | No | Expand related entities | |
| fetchAllPages | No | Automatically fetch all pages of results | |
| includeHeaders | No | Include response headers (including ETag) in the response metadata | |
| excludeResponse | No | Exclude the full response body and only return success or failure indication |