Lists the users and groups who have the Grafana Admin and Editor roles in this workspace¶
Description¶
Lists the users and groups who have the Grafana Admin and Editor roles in this workspace. If you use this operation without specifying userId or groupId, the operation returns the roles of all users and groups. If you specify a userId or a groupId, only the roles for that user or group are returned. If you do this, you can specify only one userId or one groupId.
Usage¶
Arguments¶
-
maxResultsThe maximum number of results to include in the response.
-
nextTokenThe token to use when requesting the next set of results. You received this token from a previous
list_permissionsoperation. -
userType(Optional) If you specify
SSO_USER, then only the permissions of IAM Identity Center users are returned. If you specifySSO_GROUP, only the permissions of IAM Identity Center groups are returned. -
userId(Optional) Limits the results to only the user that matches this ID.
-
groupId(Optional) Limits the results to only the group that matches this ID.
-
workspaceId[required] The ID of the workspace to list permissions for. This parameter is required.
Value¶
A list with the following syntax:
list(
nextToken = "string",
permissions = list(
list(
user = list(
id = "string",
type = "SSO_USER"|"SSO_GROUP"
),
role = "ADMIN"|"EDITOR"|"VIEWER"
)
)
)