2022-05-26 23:06:25 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								aliases:
							 
						 
					
						
							
								
									
										
										
										
											2023-06-02 21:01:33 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  -  ../../http_api/external_group_sync/
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  -  ./external_group_sync/
							 
						 
					
						
							
								
									
										
										
										
											2023-06-01 23:48:32 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								canonical: /docs/grafana/latest/developers/http_api/team_sync/
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								description: Grafana Team Sync HTTP API
							 
						 
					
						
							
								
									
										
										
										
											2022-05-26 23:06:25 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								keywords:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  -  grafana
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  -  http
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  -  documentation
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  -  api
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  -  team
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  -  teams
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  -  group
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  -  member
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  -  enterprise
							 
						 
					
						
							
								
									
										
											 
										 
										
											
												Explicitly set all front matter labels in the source files (#71548)
* Set every page to have defaults of 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration pages to have of 'Cloud', 'Enterprise', and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/enterprise-licensing pages to have 'Enterprise' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/organization-management pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/provisioning pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/recorded-queries pages to have labels cloud,enterprise
* Set administration/roles-and-permissions/access-control pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/stats-and-license pages to have labels cloud,enterprise
* Set alerting pages to have labels cloud,enterprise,oss
* Set breaking-changes pages to have labels cloud,enterprise,oss
* Set dashboards pages to have labels cloud,enterprise,oss
* Set datasources pages to have labels cloud,enterprise,oss
* Set explore pages to have labels cloud,enterprise,oss
* Set fundamentals pages to have labels cloud,enterprise,oss
* Set introduction/grafana-cloud pages to have labels cloud
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Fix introduction pages products
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set panels-visualizations pages to have labels cloud,enterprise,oss
* Set release-notes pages to have labels cloud,enterprise,oss
* Set search pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/audit-grafana pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-authentication pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/configure-authentication/enhanced-ldap pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-authentication/saml pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-database-encryption/encrypt-secrets-using-hashicorp-key-vault pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-request-security pages to have labels cloud,enterprise,oss
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-team-sync pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/export-logs pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set troubleshooting pages to have labels cloud,enterprise,oss
* Set whatsnew pages to have labels cloud,enterprise,oss
* Apply updated labels from review
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
---------
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
											 
										 
										
											2023-07-18 16:10:12 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								labels:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  products:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    -  enterprise
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    -  oss
							 
						 
					
						
							
								
									
										
										
										
											2023-06-01 23:48:32 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								title: Team Sync HTTP API
							 
						 
					
						
							
								
									
										
										
										
											2022-05-26 23:06:25 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								---
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 01:01:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-06-01 23:48:32 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								# Team Sync API
 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 01:01:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-06-01 23:48:32 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								>  Team Sync is only available in Grafana Enterprise. Read more about [Grafana Enterprise]({{< relref "/docs/grafana/latest/introduction/grafana-enterprise" >}}).
 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 01:01:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-03-16 01:06:31 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								>  If you are running Grafana Enterprise, for some endpoints you'll need to have specific permissions. Refer to [Role-based access control permissions]({{< relref "/docs/grafana/latest/administration/roles-and-permissions/access-control/custom-role-actions-scopes" >}}) for more information.
 
							 
						 
					
						
							
								
									
										
										
										
											2022-02-12 01:00:13 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 01:01:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								## Get External Groups
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								`GET /api/teams/:teamId/groups` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-05-21 03:48:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								**Required permissions**
							 
						 
					
						
							
								
									
										
										
										
											2022-02-12 01:00:13 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-05-21 03:48:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								See note in the [introduction ]({{< ref "#external-group-synchronization-api" >}} ) for an explanation.
							 
						 
					
						
							
								
									
										
										
										
											2022-02-12 01:00:13 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| Action                 | Scope    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| ---------------------- | -------- |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| teams.permissions:read | teams:\* |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 01:01:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								**Example Request**:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```http
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								GET /api/teams/1/groups HTTP/1.1
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Accept: application/json
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Content-Type: application/json
							 
						 
					
						
							
								
									
										
										
										
											2024-06-11 15:35:22 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 01:01:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								**Example Response**:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```http
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HTTP/1.1 200
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Content-Type: application/json
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								[
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    "orgId": 1,
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    "teamId": 1,
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    "groupId": "cn=editors,ou=groups,dc=grafana,dc=org"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Status Codes:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **200** - Ok
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **401** - Unauthorized
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **403** - Permission denied
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## Add External Group
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								`POST /api/teams/:teamId/groups` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-05-21 03:48:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								**Required permissions**
							 
						 
					
						
							
								
									
										
										
										
											2022-02-12 01:00:13 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-05-21 03:48:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								See note in the [introduction ]({{< ref "#external-group-synchronization-api" >}} ) for an explanation.
							 
						 
					
						
							
								
									
										
										
										
											2022-02-12 01:00:13 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| Action                  | Scope    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| ----------------------- | -------- |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| teams.permissions:write | teams:\* |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 01:01:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								**Example Request**:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```http
							 
						 
					
						
							
								
									
										
										
										
											2023-07-31 23:33:03 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								POST /api/teams/1/groups HTTP/1.1
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 01:01:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								Accept: application/json
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Content-Type: application/json
							 
						 
					
						
							
								
									
										
										
										
											2024-06-11 15:35:22 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Authorization: Bearer YWRtaW46YWRtaW4=
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 01:01:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  "groupId": "cn=editors,ou=groups,dc=grafana,dc=org"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								**Example Response**:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```http
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HTTP/1.1 200
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Content-Type: application/json
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{"message":"Group added to Team"}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Status Codes:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **200** - Ok
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **400** - Group is already added to this team
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **401** - Unauthorized
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **403** - Permission denied
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **404** - Team not found
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## Remove External Group
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-10-11 21:57:03 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								`DELETE /api/teams/:teamId/groups?groupId=external-group-id` 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 01:01:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-05-21 03:48:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								**Required permissions**
							 
						 
					
						
							
								
									
										
										
										
											2022-02-12 01:00:13 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-05-21 03:48:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								See note in the [introduction ]({{< ref "#external-group-synchronization-api" >}} ) for an explanation.
							 
						 
					
						
							
								
									
										
										
										
											2022-02-12 01:00:13 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| Action                  | Scope    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| ----------------------- | -------- |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| teams.permissions:write | teams:\* |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 01:01:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								**Example Request**:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```http
							 
						 
					
						
							
								
									
										
										
										
											2023-10-11 21:57:03 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								DELETE /api/teams/1/groups?groupId=cn%3Deditors%2Cou%3Dgroups%2Cdc%3Dgrafana%2Cdc%3Dorg HTTP/1.1
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 01:01:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								Accept: application/json
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Content-Type: application/json
							 
						 
					
						
							
								
									
										
										
										
											2024-06-11 15:35:22 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Authorization: Bearer glsa_kcVxDhZtu5ISOZIEt
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 01:01:30 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								**Example Response**:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```http
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								HTTP/1.1 200
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Content-Type: application/json
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								{"message":"Team Group removed"}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Status Codes:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **200** - Ok
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **401** - Unauthorized
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **403** - Permission denied
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **404** - Team not found/Group not found