Try it free

SCIM

  • Latest Dynatrace
  • Reference
  • 6-min read

System for Cross-domain Identity Management (SCIM) is an open standard for automating the exchange of user identity information between identity domains or IT systems. You can configure Dynatrace SaaS to be provided with user identity information automatically from your organization's identity provider (IdP) through SCIM.

Benefits of using SCIM with Dynatrace SSO

  • Users in your IdP will automatically be synchronized with Dynatrace, so there is no need to invite them manually
    • if a user is disabled or removed from the IdP, it will also disable the user in Dynatrace
  • Groups in your IdP will automatically be synchronized with Dynatrace
    • All groups created by SCIM will be of type SCIM in Account Management
  • Users will be assigned to groups in Dynatrace mirroring the relationship within the IdP

SCIM notice and limitations

  • SCIM synchronization is one-way from the IdP to Dynatrace. This is because technically the IdP is the owner of both the users and groups and changes in Dynatrace will never transpire to the IdP.
  • Dynatrace will only accept users with domains, which were verified within the account
  • Groups of type SCIM are managed by SCIM only and cannot be removed or modified through Account Management
  • Permissions to SCIM groups still have to be assigned manually in Dynatrace
    • It is possible to use Account Management API to manage the permissions programmatically
  • An email/login change made in your IdP is applied automatically by SCIM in most cases. If the new email address already belongs to another existing Dynatrace user, an additional step is required to move your IdP's link to that account, and this step is disabled by default. For details, see Is a change of email address supported?.
  • The scope of users and groups synchronized into Dynatrace with SCIM can be narrowed within the SCIM application in your IdP

Users in SCIM groups are not listed in the web UI for sharing a document (dashboard or notebook) to specific users or groups unless you add those users to local Dynatrace groups.

  • A user cannot be assigned to an account if the account has already reached its maximum number of assigned users.
  • A user cannot be added to a group if they have already reached the maximum number of groups they can be assigned to.

SCIM requirements and supported features

  • Dynatrace supports SCIM 2.0 and GET, POST, PATCH, PUT, and DELETE operations for both User and Group resources.

  • For authentication, SCIM requires Bearer token in Authorization header.

  • SCIM is configured for the account and domain scopes. At least one domain ownership verification is required for the account.

  • Only users whose email domains have been verified for ownership can be synchronized with Dynatrace via SCIM.

  • Required and supported SCIM attributes:

    SCIM AttributeType

    userName

    email format

    name.givenName

    string

    name.familyName

    string

    active

    boolean

  • Dynatrace supports changing a user's email/login (the SCIM userName) through SCIM. For details, see Is a change of email address supported?.

Verify your ownership of the domain

Before you can proceed with SCIM configuration, you need to prove ownership of the domain. Verification is based on a DNS TXT Record check.

For the account, it is sufficient to verify the domain once. If a domain has been verified for SAML, it will be valid for SCIM as well.

To verify ownership of a domain

  1. Go to Account Management. If you have more than one account, select the account you want to manage.
  1. Go to Identity & access management > Domain verification.
  2. In the Add domain section, enter the domain (for example, mycompanyname.com) for which you want to set up SCIM and select Add to add it to the Pending domains table.
    Multiple domains

    If users in your organization use more than one domain to sign in (for example, @mycompanyname.com and @uk.mycompanyname.com), you can add additional domains in additional rows and start verifying them all in parallel. Enter each domain in a different row.

  3. For each domain you are verifying, in the Pending domains table, select Copy (in the Value column) and add the copied TXT resource record to your domain’s DNS configuration.
  4. For each domain you are verifying, in the Pending domains table, select Actions > Verify so that Dynatrace can verify that the record was added to your domain’s DNS.
    Propagation time

    It typically takes a few minutes for a record to propagate through the DNS system and the value to become available for Dynatrace to verify. In some cases, it may take up to 24 hours.

  5. Each verified domain is added to the Verified domains table.

Get Dynatrace SCIM endpoint and create secret token

Use this procedure to get the Dynatrace SCIM Base URL for your account and create a secret token.

The token is revealed only once during generation time. Copy and paste it into a secure location. If you lose it, you have to generate a new one and replace it in your application.

  1. Go to Account Management > Identity & access management > SCIM configuration.

  2. In the Generate new token section, optionally enter a token Description (or you can add a description for the token later).

  3. Select Generate token

  4. Next to Token value, select Copy to copy the token to your clipboard, and then paste it into a secure location for later use.

    Dynatrace SCIM supports Bearer Token Authentication only. Example:

    HeaderValue

    Authorization

    Bearer dt0s01.XFNYASDX.XFJWNDTUXJ6PKHEHDDVKXV2K73ZDGWUFS6GKHGAFKE2DUG3JYCFXJUAGLXTN6ENX

The SCIM endpoint required for SCIM configuration in your application is added to the List of tokens.

Example IdP-specific instructions

To continue integrating Dynatrace SCIM with your IdP, select the procedure appropriate for your IdP:

  • Azure
  • Okta

FAQ

Is a change of email address supported?

Yes. In Dynatrace, a user's email address is also their login (the SCIM userName), and the two always change together. When you change a user's email address in your IdP, SCIM applies the change in Dynatrace and the user keeps their group memberships and permissions:

  • The new email address is not in use. If the new address belongs to a domain you've verified for the account and no other user has it, the change is applied directly to the existing user.
  • The new email address belongs to a recently created duplicate. If the new address is held by another user account that was created within the last day (for example, a user account provisioned automatically at first SAML sign-in), SCIM archives that recent duplicate and then applies the change to the existing user. Archiving means the duplicate user account is deactivated and its email/login is released by renaming it (for example, jane@example.com becomes jane_archived@example.com), so the new address becomes available for the existing user.

Both cases are handled automatically, and the user's identity, groups, and permissions are preserved.

If the new email address is already used by another existing user account that's more than a day old (one that a person actively signs in with), applying the change requires a user account reassignment, which moves your IdP's link onto that existing account. This is disabled by default because it hands control of an existing Dynatrace user to your IdP: from that point the IdP can change, disable, or delete that user, and the previously synchronized account is detached and loses access. To enable it for your account, contact Dynatrace Support. For what this involves, see the next FAQ entry.

What happens when the new email address already belongs to an existing user account?

A user account reassignment applies only when the new email/login is already used by an existing Dynatrace user account that's more than a day old. It's disabled by default; contact Dynatrace Support to enable it for your account.

When user account reassignment is enabled and this case occurs:

  • The existing user account that already holds the new email address becomes the surviving user. The other user account (the one your IdP previously synchronized) is detached from the Dynatrace account and is no longer synchronized.
  • The SCIM group memberships of the detached user account are migrated to the surviving user so that access is preserved.
  • Your IdP re-links to the surviving user on its next synchronization, after which provisioning continues normally against that user account.

Because the migrated group memberships reflect the state at the time of the change, they can be temporarily out of date until your IdP completes a full provisioning run, which reconciles group membership to the current state in your IdP.

Detaching the previously synchronized user account has important consequences:

  • Account and environment access is lost. Because the detached user account is removed from the Dynatrace account, it can no longer access the account or the environments that belong to it. For example, a Platform token whose token subject is the detached user, or an OAuth client that the detached user is bound to, stops working.
  • Owned resources are not transferred automatically. Resources owned by the detached user account, such as dashboards and notebooks, stay with that user. An administrator must manually transfer ownership of these resources to another user.

The detached user account is not deleted. If it needs to be restored in an emergency, it can be reattached to the Dynatrace account, but this requires involving Dynatrace Support.

How many SCIM authentication tokens can I generate?

You can generate up to 10 SCIM authentication tokens. For security reasons, we strongly recommend that you delete all unused tokens.

Can I provision users from different email domains?

Yes, you can provision as many users from different email domains as you need, as long as all of their domains have been verified. You can verify multiple domains for a single account.

It is possible to create more than one group with the same name?

No, some IdPs, like Azure AD, allow multiple groups with the same name in a single account. For Dynatrace SSO, however, each group name in an account must be unique.

Is it possible to set group description during provisioning?

No, we're limited by the SCIM protocol specification, so additional fields, such as description, can't be set during provisioning.

Azure

I have accidentally deleted a SCIM synchronized user in Dynatrace my account. Is it possible to re-synchronize the user via SCIM in Azure?

Yes, you can restart SCIM synchronization. To do this, go to the SCIM application's Overview tab and select Restart provisioning.

Related tags
Dynatrace Platform