# Microsoft 365 Users

This function allows to use all of the Microsoft Graph users API requests. For the full documentation, check the [external references](/dashboard/code/codemash-functions/microsoft-functions/aad-users.md#external-references).

For general Microsoft functions usage check a link below.

{% content-ref url="/pages/-M6AfVuV2lAQNKG2EO65" %}
[Microsoft Functions](/dashboard/code/codemash-functions/microsoft-functions.md)
{% endcontent-ref %}

## Parameters

The following are available parameters to use in these functions.

| Name       | Description                                                                              |
| ---------- | ---------------------------------------------------------------------------------------- |
| userId     | CodeMash project user ID or Microsoft user ID. **Defines which user's resource to get.** |
| authUserId | CodeMash project user ID. **Defines who is trying to get the resource.**                 |

## External references

As all of these functions uses Microsoft Graph API, you will find all of the details in the official documentation:

* [Microsoft Graph users documentation](https://docs.microsoft.com/en-us/graph/api/resources/users?view=graph-rest-1.0)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codemash.io/dashboard/code/codemash-functions/microsoft-functions/aad-users.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
