Skip to main content

Creating users and groups

Like other objects in the SDK, you can create users and groups using the builder pattern.

Create group

For example, to create a group:

Create a group
AtlanGroup group = AtlanGroup.creator("Example Group") // (1)
.build(); // (2)
String guid = group.create(client); // (3)
  1. When creating a group, you must specify at least its name.
  2. Like other builder patterns, you build the object to make it ready for creation.
  3. To actually create the group in Atlan, call the create() method on the built object. Note that it will return the GUID of the group that was created when successful. Because this operation will persist the group in Atlan, you must provide it an AtlanClient through which to connect to the tenant.

Create user

To create a user, what you're really doing is inviting them. The users will need to verify their email address to activate their account, and will be able to specify their own password as part of that process.

To invite a user:

Invite a user
AtlanUser user = AtlanUser.creator(
"[email protected]", // (1)
"$member") // (2)
.build(); // (3)
user.create(client); // (4)
  1. When inviting a user, you must specify at least their email address...
  2. ...and the workspace role you want to give that user (one of $guest, $member, or $admin).
  3. Like other builder patterns, you build the object to make it ready for creation.
  4. To actually invite the user to Atlan, call the create() method on the built object. Note that this doesn't return any information. Because this operation will persist the user in Atlan, you must provide it an AtlanClient through which to connect to the tenant.
Was this page helpful?