This API call creates a cluster user group.
The ServiceProviderAPI
(Service Provider API) Api-Token scope is required to get the default realm password policy configuration using the Dynatrace API. With this API method, you can preset user's password by passing passwordClearText
value. This is allowed only if a specific Feature Flag is enabled. To do this, Please contact a Dynatrace product expert via live chat within your environment..
/api/v1.0/onpremise/groups
Request body used for creating new user group. For creating user group leave 'id' empty, setting 'id' will return 'Bad Request'. Trying to create group with name that already exists will return 'Not Acceptable'. 'isAccessAccount' value is ignored when 'Dynatrace Platform Subscription' is not in use.
GroupConfig
objectThe configuration of the group.
Access rights
Group ID. Leave empty if creating group. Set if updating group.
(only applicable for Dynatrace Platform Subscription license model) If true, then the group has the "Access account" rights. Users assigned to a group with this permission can access account.dynatrace.com service to see Dynatrace Platform Subscription utilization and manage license quotas.
If true, then the group has the "cluster administrator" rights. Users assigned to a group with this permission are automatically given administrator access rights for all environments. They have access to Cluster Management Console and can manage your monitoring environments and Dynatrace Server. Users assigned to groups with this permission can also: Add new Dynatrace Server nodes, upgrade Dynatrace Server, manage Dynatrace Managed users and user groups, install Dynatrace OneAgent into any monitoring environment, configure monitoring settings for any monitoring environment.
If true, then the group has "Edit billing & account info" rights. Users assigned to a group with this permission can access myaccount.dynatrace.com service to see product usage statistics, license utilization and account information.
LDAP group names
Group name
SSO group names. If defined it's used to map SSO group name to Dynatrace group name, otherwise mapping is done by group name
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"accessRight": {},"id": "string","isAccessAccount": true,"isClusterAdminGroup": true,"isManageAccount": true,"ldapGroupNames": ["string"],"name": "string","ssoGroupNames": ["string"]}
Operation failed. The input is invalid. Possible reasons:
Not acceptable. Group already exists
GroupConfig
objectThe configuration of the group.
Access rights
Group ID. Leave empty if creating group. Set if updating group.
(only applicable for Dynatrace Platform Subscription license model) If true, then the group has the "Access account" rights. Users assigned to a group with this permission can access account.dynatrace.com service to see Dynatrace Platform Subscription utilization and manage license quotas.
If true, then the group has the "cluster administrator" rights. Users assigned to a group with this permission are automatically given administrator access rights for all environments. They have access to Cluster Management Console and can manage your monitoring environments and Dynatrace Server. Users assigned to groups with this permission can also: Add new Dynatrace Server nodes, upgrade Dynatrace Server, manage Dynatrace Managed users and user groups, install Dynatrace OneAgent into any monitoring environment, configure monitoring settings for any monitoring environment.
If true, then the group has "Edit billing & account info" rights. Users assigned to a group with this permission can access myaccount.dynatrace.com service to see product usage statistics, license utilization and account information.
LDAP group names
Group name
SSO group names. If defined it's used to map SSO group name to Dynatrace group name, otherwise mapping is done by group name
{"accessRight": {},"id": "string","isAccessAccount": true,"isClusterAdminGroup": true,"isManageAccount": true,"ldapGroupNames": ["string"],"name": "string","ssoGroupNames": ["string"]}
In this example, you create the Sales Group
user group that only maps to sales
LDAP group membership. This group will allow access Cluster Management Console and Account Management full rights. As a response, you'll receive back the entity's current state and newly generated ID.
curl -X 'POST' \'https://myManaged.cluster.com/api/v1.0/onpremise/groups' \-H 'accept: application/json' \-H 'Authorization: Api-Token FG563.LKJHDFLKJHDFHLKJDGV.ABCDEFGHJKLMNOP' \-H 'Content-Type: application/json' \-d '{"isClusterAdminGroup": true,"isAccessAccount": true,"isManageAccount": true,"id": "","name": "Sales Group","ldapGroupNames": ["sales"]}}'
https://myManaged.cluster.com/api/v1.0/onpremise/groups
{"isClusterAdminGroup": true,"isAccessAccount": true,"isManageAccount": true,"id": "salesgroup","name": "Sales Group","ldapGroupNames": ["sales"]}
200