Use case: Configure organizations in ForgeRock Identity Cloud

Author:

Lucy Billington

Created at:

Jan 2023

Updated at:

Oct 2023

Use case overview

Grouping identities into organizations is a common use case that is easily implemented in ForgeRock Identity Cloud. Organizations enable you to build hierarchy, ownership and delegated administration to suit your business needs.

For example, you can configure organizations so that administrators in one organization have no access to users in another organization or sub-organization in the hierarchy. With delegated administration, you can grant certain users (such as help desk users) access to a subset of user management options for an organization.

See Organizations for further information on organizations in Identity Cloud.

Steps to achieve this use case

This use case has two parts:

  • Create and manage organizations, owners, administrators and members

  • Allow helpdesk users to access a subset of user management options based on an internal role

Create and manage organizations, owners, administrators and members

Organizations include a designated owner, administrators and members:

  • An organization owner can add administrators to their organizations and create sub-organizations.

  • Organization administrators manage user identities within organizations and sub-organizations and can delegate administration to individual users through roles and assignments.

  • Organization members are users who belong to an organization.

In this use case we’ll demonstrate how to:

  • Create an organization, assign an organization owner and add members

  • Log in as the organization owner and assign an organization administrator

  • Log in as an organization administrator and create new members and a sub-organization

  • Log in as the organization owner and add administrators to a sub-organization

Prerequisites

For this example use case we have already added two user identities in the Identity Cloud alpha realm, called “Company-C-owner” and “Company-C-admin”.

See Manage Identities for further information on creating user identities in Identity Cloud.

Create an organization, assign an organization owner and add members

  1. Sign in to the Identity Cloud admin UI using your admin tenant URL, in the format https://<tenant-name>/am/XUI/?realm=/#/.

  2. Go to Identities > Manage > Alpha realm - Organizations.

  3. Click New Alpha realm - Organization.

  4. Enter a name for the organization and click Save. In this use case, we’re calling it Company C.

    https://backstage-community-prod.storage.googleapis.com/original/2X/4/435cb752ce7e6eddddb718111944c936f6c2c015

  5. Click Owner > Add Owner.

  6. Select Company-C-owner and click Save.

    https://backstage-community-prod.storage.googleapis.com/original/2X/0/0dcc2ea627e0fd5ff19424b340b3ba6baeea43c6

  7. Click Members > Add Members.

  8. Add the following members: Company-C-admin and Company-C-owner and click Save

    https://backstage-community-prod.storage.googleapis.com/original/2X/a/a9b6a8d37843a85850d83606d8cafea4122b5eda

    Note that we are not adding an organization administrator yet. We’ll do that in the next steps.

  9. Sign out of Identity Cloud.

Assign an organization administrator

Only organization owners or tenant administrators can assign organization administrators.

  1. Sign in to the Identity Cloud end user UI as the Company C organization owner (Company-C-owner).

  2. Click Alpha realm - organization.

    https://backstage-community-prod.storage.googleapis.com/original/2X/9/923bc9414cd1c3ad3de97fffcca4f7cef436f574

  3. Click on Company C.

    https://backstage-community-prod.storage.googleapis.com/original/2X/9/9734e0201703c11060f3c08db4fe1269f9a9df91

  4. Click Administrators > Add Administrators.

  5. Select Company-C-admin and click Save.

    https://backstage-community-prod.storage.googleapis.com/original/2X/a/a32f654f575ae295b1708de05ccc441674e7377a

  6. Sign out of Identity Cloud.

Create organization members and sub-organizations (as an organization administrator)

Organization administrators can create users (organization members) and sub-organizations.

  1. Sign in to the Identity Cloud end user UI as a Company C administrator (Company-C-admin).

  2. Add an organization member:

    1. Go to Alpha realm - user > New Alpha realm - User.

    2. Enter the user’s details. For example:

      • Username: Company-C-member1

      • First Name: CompanyC

      • Last Name: Member1

      • Email Address: Company-C-member1@example.com

      • Organizations to which I Belong: Company C

        https://backstage-community-prod.storage.googleapis.com/original/2X/9/921c18bed3a13b0f5803bb09c15ebae8012d25da

        c. Click Save

  3. Add a sub-organization:

    1. Go to Alpha realm - user > New realm - Organization.

    2. Enter the sub-organization details. For example:

      • Name: Company-C-suborg1

      • Parent Organization: Company C

        https://backstage-community-prod.storage.googleapis.com/original/2X/b/b93e4e6078c91c58583c78fdd1f3c0a7361f8413

        c. Click Save.

  4. Add a member to the sub-organization:

    1. Go to Alpha realm - user > New Alpha realm - User.

    2. Enter the user’s details. For example:

      • Username: Company-C-suborg1-member1

      • First Name: CompanyC

      • Last Name: SubOrg1Member1

      • Email Address: Company-C-suborg1-member1@example.com

      • Organizations to which I Belong: Company-C-suborg1

        https://backstage-community-prod.storage.googleapis.com/original/2X/9/93e507c9ec3136ad4e30b152f18e2d69fcddcef9

        c. Click Save

  5. Sign out of Identity Cloud.

Add administrators to the sub-organization

Only organization owners or tenant administrators can assign administrators to sub-organizations.

  1. Sign in to the Identity Cloud end user UI as the Company C owner (Company-C-owner).

  2. Go to Alpha realm - organization > Company-C-suborg1.

  3. Go to Administrators > Add Administrators, and select CompanyC SubOrg1Member1.

    https://backstage-community-prod.storage.googleapis.com/original/2X/7/71050367c3fd5cbc158f03bc763a35dca2b2c186

  4. Click Save.

    https://backstage-community-prod.storage.googleapis.com/original/2X/b/b83f8dce6445a33a9ccb06dafd67be013ac4210f

  5. Sign out of Identity Cloud.

  6. Sign in to the Identity Cloud end user UI as the Company C sub-org administrator (Company-C-suborg1-member1).

  7. Go to Alpha realm - User.

You should see the members of the sub-organization (and only those).

https://backstage-community-prod.storage.googleapis.com/original/2X/0/0627996381a4dcc9a0176555e4671d0b5ff31bf3

Allow helpdesk users to access a subset of user management options

This use case demonstrates how to grant helpdesk users access to a subset of user management options based on an internal role.

We’ll configure an internal role that matches on usernames containing ‘helpdesk’ and gives helpdesk users access to manage members of a particular organization.

Prerequisites

For this example use case we have already created an organization, called “Company A”, with the following users:

  • Organization owner: Company-A-owner

  • Organization administrator: Company-A-admin

  • Organization members: Company-A-member1, Company-A-member2, Company-A-helpdesk

https://backstage-community-prod.storage.googleapis.com/original/2X/3/3a1726ec63ad0c26c2fc21444ef64ed46f0047e6

See Organizations for further information on creating organizations, and Manage Identities for further information on creating user identities, in Identity Cloud.

Before you begin

Make a note of the ID of the organization for which you want to set the internal role, in this case, Company A. The organization ID will look similar to this: 0f3dc59b-5b6a-4466-87ff-3202c86afddc.

Configure an internal role

  1. Sign in to the Identity Cloud admin UI using your admin tenant URL, in the format https://<tenant-name>/am/XUI/?realm=/#/.

  2. Go to Identities> Manage > Internal Roles.

  3. Click New Internal Role.

  4. Enter a unique name for the internal role, for example, Company-A-Helpdesk-Role, and an (optional) description.

    https://backstage-community-prod.storage.googleapis.com/original/2X/e/e30fccde832c73206d8e54b722b78ddd1dc83c10

  5. Click Next.

  6. Select the identity object for which the role should grant administration privileges. In this case, select Alpha realm - users.

    https://backstage-community-prod.storage.googleapis.com/original/2X/5/5a1acb87fd9d5694140dec1e5f34f9fd97f1b699

  7. Click Add and select the Update check box.

    https://backstage-community-prod.storage.googleapis.com/original/2X/0/04e7db2d540100d44d62b24036e707644349a945

    This will allow users with internal role permissions to view and update user identities.

  8. Click Show advanced.

  9. Set all the attribute permissions to Read, except password (Read/Write).

    uc_new_internal_role_alpha_user_attributes

  10. Set a filter to only apply the internal role to users who are members of a specified organization. In this example, the organization is Company A.

    1. Toggle Administer only a subset of Alpha realm - Users by applying a filter to On.

    2. Click Advanced editor.

    3. Enter /memberOfOrgIDs eq "<org ID>", where <org ID> is the ID of the organization (Company A).

      uc_new_internal_role_alpha_user_filter

  11. Click Next.

  12. Toggle A conditional filter for this role to On and set the following condition: Username contains helpdesk.

    https://backstage-community-prod.storage.googleapis.com/original/2X/0/04f6d548bd4c8cd3ada279985b9b1af47ca75686

    This will apply the internal role only to those users who have “helpdesk” in their username.

  13. Click Next and then Save.

    https://backstage-community-prod.storage.googleapis.com/original/2X/4/49eecd5cef7041ebde4b6745e9a34f3aaac711f9

  14. Click Members to see the members of the internal role. Only users with ‘helpdesk’ in their username should be listed.

    https://backstage-community-prod.storage.googleapis.com/original/2X/3/3db547bfe0a41700b1dd199354916851c1fd831c

  15. Sign out of Identity Cloud.

Confirm the privileges for users with the internal role

  1. Sign in to the Identity Cloud end user UI as the helpdesk user (Company-A-helpdesk).

  2. Click Alpha realm - user.

    Only users in the alpha realm who are members of Company A should be listed.

    https://backstage-community-prod.storage.googleapis.com/original/2X/a/ae0fb55367f44eb89f82cec6555006e53ad675b3

  3. Click on a user to view their details.

All the details are view-only except Reset Password.

https://backstage-community-prod.storage.googleapis.com/original/2X/8/85d2df813d61b755789a09a028bf5b6c02bf8f07

Conclusion

With Identity Cloud’s flexible Organization model, you can easily build hierarchy, ownership and delegated administration to suit your business needs. Further, if you want to allow only certain users in an organization access to certain user management options, this is easily achieved using delegated administration and internal roles.