grafana/docs/sources/auth/azuread.md

150 lines
5.5 KiB
Markdown
Raw Normal View History

+++
title = "Azure AD OAuth2 authentication"
description = "Grafana Azure AD OAuth Guide "
keywords = ["grafana", "configuration", "documentation", "oauth"]
weight = 700
+++
# Azure AD OAuth2 authentication
> Only available in Grafana v6.7+
Docs:Adjust azuread.md for Powershell UUID command (#27323) * Docs:Adjust azuread.md for Powershell UUID command Why this change is needed: -Update the docs to include more Unique ID information for Windows users. This is intended to improve user experience. -Adjust passive to active voice where it improves the documentation. -Checking for style guide compliance. Closes issue: #23094 * Update azuread.md Fixed typo "possibile". * Update docs/sources/auth/azuread.md fix capital letter U and G. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Adjust punctuation for clarity. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Place Note in correct bold markup following style guide. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Bold markup for UI fields. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Including suggestions as noted by Diana Payton * adjusting object IDs to match the docs.microsoft style * using bold for UI elements * Other fixes as needed Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Add the adverb to place the next step directly after the previous step in sequence. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Change remaining lowercase "id" use to upper case "ID" when it appears in text. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Applying achatterjee's suggestions Accepting the changes: * Adding in articles * Adjusting prepositions * Other changes as requests Completing this commit through the Github web interface for added speed. Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-07-14 11:55:25 -05:00
The Azure AD authentication allows you to use an Azure Active Directory tenant as an identity provider for Grafana. You can use Azure AD Application Roles to assign users and groups to Grafana roles from the Azure Portal.
## Create the Azure AD application
To enable the Azure AD OAuth2 you must register your application with Azure AD.
1. Log in to [Azure Portal](https://portal.azure.com) and click **Azure Active Directory** in the side menu. If you have access to more than one tenant, select your account in the upper right. Set your session to the Azure AD tenant you wish to use.
1. Under **Manage** in the side menu, click **App Registrations** and then **New Registration**. Provide a fitting name.
1. Under **Redirect URI**, select **Web** as the app type.
1. Add the redirect URL `https://<grafana domain>/login/azuread`, then click **Register**.
Docs:Adjust azuread.md for Powershell UUID command (#27323) * Docs:Adjust azuread.md for Powershell UUID command Why this change is needed: -Update the docs to include more Unique ID information for Windows users. This is intended to improve user experience. -Adjust passive to active voice where it improves the documentation. -Checking for style guide compliance. Closes issue: #23094 * Update azuread.md Fixed typo "possibile". * Update docs/sources/auth/azuread.md fix capital letter U and G. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Adjust punctuation for clarity. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Place Note in correct bold markup following style guide. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Bold markup for UI fields. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Including suggestions as noted by Diana Payton * adjusting object IDs to match the docs.microsoft style * using bold for UI elements * Other fixes as needed Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Add the adverb to place the next step directly after the previous step in sequence. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Change remaining lowercase "id" use to upper case "ID" when it appears in text. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Applying achatterjee's suggestions Accepting the changes: * Adding in articles * Adjusting prepositions * Other changes as requests Completing this commit through the Github web interface for added speed. Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-07-14 11:55:25 -05:00
1. The app's **Overview** page is displayed. Note the **Application ID**. This is the OAuth client ID.
1. Click **Endpoints** from the top menu.
Docs:Adjust azuread.md for Powershell UUID command (#27323) * Docs:Adjust azuread.md for Powershell UUID command Why this change is needed: -Update the docs to include more Unique ID information for Windows users. This is intended to improve user experience. -Adjust passive to active voice where it improves the documentation. -Checking for style guide compliance. Closes issue: #23094 * Update azuread.md Fixed typo "possibile". * Update docs/sources/auth/azuread.md fix capital letter U and G. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Adjust punctuation for clarity. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Place Note in correct bold markup following style guide. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Bold markup for UI fields. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Including suggestions as noted by Diana Payton * adjusting object IDs to match the docs.microsoft style * using bold for UI elements * Other fixes as needed Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Add the adverb to place the next step directly after the previous step in sequence. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Change remaining lowercase "id" use to upper case "ID" when it appears in text. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Applying achatterjee's suggestions Accepting the changes: * Adding in articles * Adjusting prepositions * Other changes as requests Completing this commit through the Github web interface for added speed. Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-07-14 11:55:25 -05:00
- Note the **OAuth 2.0 authorization endpoint (v2)**. This is the auth URL.
- Note the **OAuth 2.0 token endpoint (v2)**. This is the token URL.
Docs:Adjust azuread.md for Powershell UUID command (#27323) * Docs:Adjust azuread.md for Powershell UUID command Why this change is needed: -Update the docs to include more Unique ID information for Windows users. This is intended to improve user experience. -Adjust passive to active voice where it improves the documentation. -Checking for style guide compliance. Closes issue: #23094 * Update azuread.md Fixed typo "possibile". * Update docs/sources/auth/azuread.md fix capital letter U and G. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Adjust punctuation for clarity. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Place Note in correct bold markup following style guide. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Bold markup for UI fields. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Including suggestions as noted by Diana Payton * adjusting object IDs to match the docs.microsoft style * using bold for UI elements * Other fixes as needed Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Add the adverb to place the next step directly after the previous step in sequence. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Change remaining lowercase "id" use to upper case "ID" when it appears in text. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Applying achatterjee's suggestions Accepting the changes: * Adding in articles * Adjusting prepositions * Other changes as requests Completing this commit through the Github web interface for added speed. Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-07-14 11:55:25 -05:00
1. Click **Certificates & secrets** and then add a new entry under **Client secrets**.
Docs:Adjust azuread.md for Powershell UUID command (#27323) * Docs:Adjust azuread.md for Powershell UUID command Why this change is needed: -Update the docs to include more Unique ID information for Windows users. This is intended to improve user experience. -Adjust passive to active voice where it improves the documentation. -Checking for style guide compliance. Closes issue: #23094 * Update azuread.md Fixed typo "possibile". * Update docs/sources/auth/azuread.md fix capital letter U and G. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Adjust punctuation for clarity. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Place Note in correct bold markup following style guide. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Bold markup for UI fields. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Including suggestions as noted by Diana Payton * adjusting object IDs to match the docs.microsoft style * using bold for UI elements * Other fixes as needed Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Add the adverb to place the next step directly after the previous step in sequence. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Change remaining lowercase "id" use to upper case "ID" when it appears in text. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Applying achatterjee's suggestions Accepting the changes: * Adding in articles * Adjusting prepositions * Other changes as requests Completing this commit through the Github web interface for added speed. Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-07-14 11:55:25 -05:00
- Description: Grafana OAuth
- Expires: Never
1. Click **Add**, and then copy the key value. This is the OAuth client secret.
1. Click **Manifest**.
Docs:Adjust azuread.md for Powershell UUID command (#27323) * Docs:Adjust azuread.md for Powershell UUID command Why this change is needed: -Update the docs to include more Unique ID information for Windows users. This is intended to improve user experience. -Adjust passive to active voice where it improves the documentation. -Checking for style guide compliance. Closes issue: #23094 * Update azuread.md Fixed typo "possibile". * Update docs/sources/auth/azuread.md fix capital letter U and G. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Adjust punctuation for clarity. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Place Note in correct bold markup following style guide. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Bold markup for UI fields. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Including suggestions as noted by Diana Payton * adjusting object IDs to match the docs.microsoft style * using bold for UI elements * Other fixes as needed Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Add the adverb to place the next step directly after the previous step in sequence. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Change remaining lowercase "id" use to upper case "ID" when it appears in text. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Applying achatterjee's suggestions Accepting the changes: * Adding in articles * Adjusting prepositions * Other changes as requests Completing this commit through the Github web interface for added speed. Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-07-14 11:55:25 -05:00
- Define the required Application Role values for Grafana: Viewer, Editor, Admin. Otherwise, all users will have the Viewer role.
- Every role requires a unique ID.
- Generate the unique ID on Linux with `uuidgen`, and on Windows through Microsoft
PowerShell with `New-Guid`.
- Include the unique ID in the configuration file:
```json
"appRoles": [
{
"allowedMemberTypes": [
"User"
],
"description": "Grafana admin Users",
"displayName": "Grafana Admin",
"id": "SOME_UNIQUE_ID",
"isEnabled": true,
"lang": null,
"origin": "Application",
"value": "Admin"
},
{
"allowedMemberTypes": [
"User"
],
"description": "Grafana read only Users",
"displayName": "Grafana Viewer",
"id": "SOME_UNIQUE_ID",
"isEnabled": true,
"lang": null,
"origin": "Application",
"value": "Viewer"
},
{
"allowedMemberTypes": [
"User"
],
"description": "Grafana Editor Users",
"displayName": "Grafana Editor",
"id": "SOME_UNIQUE_ID",
"isEnabled": true,
"lang": null,
"origin": "Application",
"value": "Editor"
}
],
```
1. Go to **Azure Active Directory** and then to **Enterprise Applications**. Search for your application and click on it.
1. Click on **Users and Groups** and add Users/Groups to the Grafana roles by using **Add User**.
## Enable Azure AD OAuth in Grafana
1. Add the following to the [Grafana configuration file]({{< relref "../administration/configuration.md#config-file-locations" >}}):
```ini
[auth.azuread]
name = Azure AD
enabled = true
allow_sign_up = true
client_id = APPLICATION_ID
client_secret = CLIENT_SECRET
scopes = openid email profile
auth_url = https://login.microsoftonline.com/TENANT_ID/oauth2/v2.0/authorize
token_url = https://login.microsoftonline.com/TENANT_ID/oauth2/v2.0/token
allowed_domains =
allowed_groups =
```
Docs:Adjust azuread.md for Powershell UUID command (#27323) * Docs:Adjust azuread.md for Powershell UUID command Why this change is needed: -Update the docs to include more Unique ID information for Windows users. This is intended to improve user experience. -Adjust passive to active voice where it improves the documentation. -Checking for style guide compliance. Closes issue: #23094 * Update azuread.md Fixed typo "possibile". * Update docs/sources/auth/azuread.md fix capital letter U and G. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Adjust punctuation for clarity. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Place Note in correct bold markup following style guide. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Bold markup for UI fields. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Including suggestions as noted by Diana Payton * adjusting object IDs to match the docs.microsoft style * using bold for UI elements * Other fixes as needed Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Add the adverb to place the next step directly after the previous step in sequence. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Change remaining lowercase "id" use to upper case "ID" when it appears in text. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Applying achatterjee's suggestions Accepting the changes: * Adding in articles * Adjusting prepositions * Other changes as requests Completing this commit through the Github web interface for added speed. Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-07-14 11:55:25 -05:00
**Note:** Ensure that the [root_url]({{< relref "../administration/configuration/#root-url" >}}) in Grafana is set in your Azure Application Reply URLs (**App** -> **Settings** -> **Reply URLs**)
### Configure allowed groups
Docs:Adjust azuread.md for Powershell UUID command (#27323) * Docs:Adjust azuread.md for Powershell UUID command Why this change is needed: -Update the docs to include more Unique ID information for Windows users. This is intended to improve user experience. -Adjust passive to active voice where it improves the documentation. -Checking for style guide compliance. Closes issue: #23094 * Update azuread.md Fixed typo "possibile". * Update docs/sources/auth/azuread.md fix capital letter U and G. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Adjust punctuation for clarity. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Place Note in correct bold markup following style guide. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Bold markup for UI fields. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Including suggestions as noted by Diana Payton * adjusting object IDs to match the docs.microsoft style * using bold for UI elements * Other fixes as needed Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Add the adverb to place the next step directly after the previous step in sequence. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Change remaining lowercase "id" use to upper case "ID" when it appears in text. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Applying achatterjee's suggestions Accepting the changes: * Adding in articles * Adjusting prepositions * Other changes as requests Completing this commit through the Github web interface for added speed. Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-07-14 11:55:25 -05:00
To limit access to authenticated users who are members of one or more groups, set `allowed_groups`
to a comma- or space-separated list of group object IDs. You can find object IDs for a specific group on the Azure portal:
Docs:Adjust azuread.md for Powershell UUID command (#27323) * Docs:Adjust azuread.md for Powershell UUID command Why this change is needed: -Update the docs to include more Unique ID information for Windows users. This is intended to improve user experience. -Adjust passive to active voice where it improves the documentation. -Checking for style guide compliance. Closes issue: #23094 * Update azuread.md Fixed typo "possibile". * Update docs/sources/auth/azuread.md fix capital letter U and G. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Adjust punctuation for clarity. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Place Note in correct bold markup following style guide. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Bold markup for UI fields. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Including suggestions as noted by Diana Payton * adjusting object IDs to match the docs.microsoft style * using bold for UI elements * Other fixes as needed Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Add the adverb to place the next step directly after the previous step in sequence. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Change remaining lowercase "id" use to upper case "ID" when it appears in text. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Applying achatterjee's suggestions Accepting the changes: * Adding in articles * Adjusting prepositions * Other changes as requests Completing this commit through the Github web interface for added speed. Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-07-14 11:55:25 -05:00
1. Go to **Azure Active Directory -> Groups**.
For example, if you want to only give access to members of the group `example` with an ID of `8bab1c86-8fba-33e5-2089-1d1c80ec267d`, set the following:
```ini
allowed_groups = 8bab1c86-8fba-33e5-2089-1d1c80ec267d
```
Docs:Adjust azuread.md for Powershell UUID command (#27323) * Docs:Adjust azuread.md for Powershell UUID command Why this change is needed: -Update the docs to include more Unique ID information for Windows users. This is intended to improve user experience. -Adjust passive to active voice where it improves the documentation. -Checking for style guide compliance. Closes issue: #23094 * Update azuread.md Fixed typo "possibile". * Update docs/sources/auth/azuread.md fix capital letter U and G. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Adjust punctuation for clarity. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Place Note in correct bold markup following style guide. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Bold markup for UI fields. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Including suggestions as noted by Diana Payton * adjusting object IDs to match the docs.microsoft style * using bold for UI elements * Other fixes as needed Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Add the adverb to place the next step directly after the previous step in sequence. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Change remaining lowercase "id" use to upper case "ID" when it appears in text. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Applying achatterjee's suggestions Accepting the changes: * Adding in articles * Adjusting prepositions * Other changes as requests Completing this commit through the Github web interface for added speed. Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-07-14 11:55:25 -05:00
You'll need to ensure that you've [enabled group attributes](https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-fed-group-claims#configure-the-azure-ad-application-registration-for-group-attributes) in your Azure AD Application Registration manifest file. Navigate to **Azure Portal** -> **Azure Active Directory** -> **Application Registrations** -> **Select Application** -> **Manifest**, and set the following:
```json
"groupMembershipClaims": "ApplicationGroup, SecurityGroup"
```
Docs:Adjust azuread.md for Powershell UUID command (#27323) * Docs:Adjust azuread.md for Powershell UUID command Why this change is needed: -Update the docs to include more Unique ID information for Windows users. This is intended to improve user experience. -Adjust passive to active voice where it improves the documentation. -Checking for style guide compliance. Closes issue: #23094 * Update azuread.md Fixed typo "possibile". * Update docs/sources/auth/azuread.md fix capital letter U and G. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Adjust punctuation for clarity. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Place Note in correct bold markup following style guide. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Bold markup for UI fields. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Including suggestions as noted by Diana Payton * adjusting object IDs to match the docs.microsoft style * using bold for UI elements * Other fixes as needed Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Add the adverb to place the next step directly after the previous step in sequence. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Change remaining lowercase "id" use to upper case "ID" when it appears in text. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Applying achatterjee's suggestions Accepting the changes: * Adding in articles * Adjusting prepositions * Other changes as requests Completing this commit through the Github web interface for added speed. Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-07-14 11:55:25 -05:00
### Configure allowed domains
The `allowed_domains` option limits access to users who belong to specific domains. Separate domains with space or comma.
```ini
allowed_domains = mycompany.com mycompany.org
```
### Team Sync (Enterprise only)
> Only available in Grafana Enterprise v6.7+
With Team Sync you can map your Azure AD groups to teams in Grafana so that your users will automatically be added to
the correct teams.
Docs:Adjust azuread.md for Powershell UUID command (#27323) * Docs:Adjust azuread.md for Powershell UUID command Why this change is needed: -Update the docs to include more Unique ID information for Windows users. This is intended to improve user experience. -Adjust passive to active voice where it improves the documentation. -Checking for style guide compliance. Closes issue: #23094 * Update azuread.md Fixed typo "possibile". * Update docs/sources/auth/azuread.md fix capital letter U and G. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Adjust punctuation for clarity. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Place Note in correct bold markup following style guide. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Bold markup for UI fields. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Including suggestions as noted by Diana Payton * adjusting object IDs to match the docs.microsoft style * using bold for UI elements * Other fixes as needed Update docs/sources/auth/azuread.md Capital for id > ID. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Add the adverb to place the next step directly after the previous step in sequence. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/auth/azuread.md Change remaining lowercase "id" use to upper case "ID" when it appears in text. Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Applying achatterjee's suggestions Accepting the changes: * Adding in articles * Adjusting prepositions * Other changes as requests Completing this commit through the Github web interface for added speed. Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-07-14 11:55:25 -05:00
You can reference Azure AD groups by group object ID, like `8bab1c86-8fba-33e5-2089-1d1c80ec267d`.
[Learn more about Team Sync]({{< relref "team-sync.md" >}})