> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dfns.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage users and roles

> Manage team members and their roles within your DFNS organization, including inviting users, assigning permissions, and removing access.

> [!NOTE]
>
> **Key Takeaways:**
>
> * **Users** are individuals invited to your DFNS organization.
> * **Roles** are collections of permissions that define what a user can see and do.
> * **User groups** bundle users under one name: roles assigned to a group apply to all its members, and a policy can name the group as approver instead of a fixed list of users.
> * **Best Practice:** Grant users the minimum permissions necessary for their job (principle of least privilege).

## Manage users

You can easily invite new team members to your DFNS organization and manage their access directly from the dashboard.

### Invite a new user

To add a new member to your team:

1. Navigate to **Users**.
2. Click the **Invite User** button in the tab bar.
3. Enter the user's **email address**.
4. Click **Create**.

The user will receive an email invitation to join your DFNS organization.
They are created without any role or permission, so they cannot see or do anything. You should then assign roles to them to grant them permissions.

![New User invite form with the email field and Create button](https://mintcdn.com/dfns-6d8c7466/MvCzOGDeqj3l8z-T/images/auto/creating-your-organization-3.png?fit=max\&auto=format\&n=MvCzOGDeqj3l8z-T\&q=85\&s=b32049f199408814d92c4a778fd8d2a3)

### Deactivate a user

If a team member no longer requires access, you can deactivate their account. Deactivating a user immediately revokes their access to the DFNS dashboard and API. Any [Personal Access Tokens](https://docs.dfns.co/guides/developers/personal-access-token.md) or other credentials linked to the user will also stop working. Reactivating the user restores access, including their PATs.

1. Navigate to **Users**.
2. Find the user in the list and open its action menu.
3. Toggle off **Active** to deactivate the user (or click **Delete User** to remove them entirely).

![User action menu with the Active toggle highlighted](https://mintcdn.com/dfns-6d8c7466/MvCzOGDeqj3l8z-T/images/auto/managing-users-and-roles-1.png?fit=max\&auto=format\&n=MvCzOGDeqj3l8z-T\&q=85\&s=f8476a9dc1fc4a2b91e6b19ad0314149)

## Manage roles

Roles allow you to define granular permissions and apply them consistently to different users. This approach simplifies access management and enhances security.

### Creating a custom role

DFNS provides default roles like `ManagedFullAdminAccess` (which is applied when you set someone as an Admin), but we highly recommend creating custom roles tailored to your team's specific responsibilities.

1. Navigate to **Org** > **Permissions**.
2. Click **Create Role**.
3. Give the role a descriptive **Name** (e.g., "Approver", "Auditor", "Transaction Operator").
4. Select the specific **Permissions** you want to include. Each permission is broken down by action (`Create`, `Read`, `Update`) and resource (`Wallets`, `Policies`, etc.).
5. Click **Create** to save the new role.

![New role form with a name and selected permissions](https://mintcdn.com/dfns-6d8c7466/4KdDh6fjSJCzr-9x/images/auto/defining-roles-2.png?fit=max\&auto=format\&n=4KdDh6fjSJCzr-9x\&q=85\&s=98c203d6e00c665e6f15268de9a3f4e4)

### Assigning roles to users

You can assign or change a user's roles at any time.

1. Navigate to **Users**.
2. Click on the user you wish to edit.
3. In the **Roles** section, click **Add Role** to assign a role, or remove existing ones.
4. Changes are saved automatically.

![User details page with the Add Role button highlighted](https://mintcdn.com/dfns-6d8c7466/4KdDh6fjSJCzr-9x/images/auto/defining-roles-3.png?fit=max\&auto=format\&n=4KdDh6fjSJCzr-9x\&q=85\&s=97c6ad3d31a98d433ac2c5bf46da62d0)

## Manage user groups

A user group gives a set of users a shared name. Use it to:

* **Grant roles once**: a role assigned to a group applies to every member for as long as they belong to it.
* **Name approvers in policies**: an approval group can name a user group instead of a fixed list of users, so approvers follow the group's membership.

You add users as members, including tenant users who can access your organization (marked **Tenant User**). Service accounts never count as approvers through a group.

If the **User Groups** tab does not appear under **Users**, user groups are not enabled for your organization yet. Contact DFNS to enable them.

### Create a user group

1. Navigate to **Users** > **User Groups**.
2. Click **Add Group**.
3. Enter a **Group name** (e.g., "Treasury\_Operators") and optionally assign users right away. Names are unique and use letters, digits, and `_ + . -` only (no spaces).
4. Click **Create Group**.

![User Groups list with the Add Group button highlighted](https://mintcdn.com/dfns-6d8c7466/KRgJdtZh7R28b6JK/images/auto/managing-user-groups-1.png?fit=max\&auto=format\&n=KRgJdtZh7R28b6JK\&q=85\&s=bff55bf5367ab9396903fcd799a75056)

### Manage members

Open a group from the list to see its detail panel. Click **Assign user** to add members, remove a member from the list, or **Rename** the group without affecting its members. The group panel also lists the **Policies** that name the group as approver.

You can also manage memberships from a user's page: the **Groups** section lists the user's groups and the roles each one grants, and **Add to Group** adds the user to another group.

![User group detail panel with the group's roles and members](https://mintcdn.com/dfns-6d8c7466/KRgJdtZh7R28b6JK/images/auto/managing-user-groups-2.png?fit=max\&auto=format\&n=KRgJdtZh7R28b6JK\&q=85\&s=8deda77ee5b44a8bc873f3b62029c070)

### Assign roles to a group

1. Open the group from **Users** > **User Groups**.
2. In the **Roles** section, click **Assign role**.
3. Select the role and click **Assign Role**.

![Assigning a role to a user group](https://mintcdn.com/dfns-6d8c7466/KRgJdtZh7R28b6JK/images/auto/managing-user-groups-3.png?fit=max\&auto=format\&n=KRgJdtZh7R28b6JK\&q=85\&s=622b508de8fd9af9d311d5b7725363bf)

Every member now holds the role's permissions on top of their own roles. If a policy requires approval, the role shows **Awaiting approval** until the approval completes. Removing a user from the group, or the role from the group, takes the permissions away. Assigning and revoking a group's role follows the same rules as for a user: it needs the `Permissions:Assign` and `Permissions:Revoke` permissions, and a policy on these activities holds the change for approval.

A user's page shows their **Groups**, with the roles each group grants, and all the **Roles** they hold. Filter roles by **Direct** (assigned to the user) or **Inherited** (from a group). An inherited role carries the group's name and a lock: to revoke it, remove the user from the group or the role from the group.

![User page listing the user's groups and their direct and inherited roles](https://mintcdn.com/dfns-6d8c7466/4KdDh6fjSJCzr-9x/images/auto/managing-user-groups-4.png?fit=max\&auto=format\&n=4KdDh6fjSJCzr-9x\&q=85\&s=80df2294f43b2ace461e0d472a1e2151)

### Use a group as a policy approver

When building an approval policy, the **Add Approver** picker lists your **User groups** above **Individual users**. Select a group to make its members approvers; the picker shows how many unique users can then approve. Approvals always follow the group's current membership, so staffing changes don't require editing the policy. You can also create a group directly from the picker.

The group itself must hold the vote: assign it a role that includes `Policies:Evaluations:Vote`. Otherwise the policy cannot be saved. See [Create policies](https://docs.dfns.co/guides/create-policies.md) and [approval groups and quorums](https://docs.dfns.co/core-concepts/policies.md#approval-process).

### Delete a user group

Open the group's action menu in the **User Groups** list, click **Delete**, and confirm. Deleting a group revokes all the roles assigned to it, so its members lose every permission they held only through the group.

### Changes DFNS refuses

To keep your organization governable, DFNS rejects a group change that would leave it in a broken state:

* **Deleting a group named as approver**: a policy names the group in an approval group. Update the policy first.
* **Losing the last admin**: removing members, deleting the group, or revoking its role would leave no active user holding `ManagedFullAdminAccess`.
* **Stranding an approver**: removing members, deleting the group, or revoking its role would take away the last route to `Policies:Evaluations:Vote` from a user a policy names as approver. Give them the permission another way, or update the policy first.
* **Breaking a quorum**: removing members from a group a policy names, or deactivating, archiving, or deleting one of its members, would leave an approval group unable to reach its quorum. The same applies when a `Policies:Modify` approval group would lose the extra approver it needs because initiators cannot approve their own request.
* **Renaming under OIDC**: while users sign in through OIDC, the login sync matches role claims to group names, so a group cannot be renamed.

### Control who changes a group

Group membership decides who holds the group's roles and who can approve for it. Protect it like role assignments:

* Grant the `User Groups` permissions only to the people who manage access (see [Roles and permissions](https://docs.dfns.co/core-concepts/roles-and-permissions.md#user-groups)).
* Require approval for group changes with a [user-action policy](https://docs.dfns.co/api-reference/policies.md#useraction-activity) on `AddUserGroupMembers`, `RemoveUserGroupMembers`, `UpdateUserGroup`, and `DeleteUserGroup`. In the dashboard, create it from the policy builder under the **User Actions** activity category. A held change shows as submitted for approval and applies once approved.
* Require approval for role assignments with a policy on `Permissions:Assign`. It covers roles assigned to groups, and membership changes and group deletions too, since they grant or revoke the group's roles.
* Protect your approver groups with a policy on `Policies:Modify`. A membership change to a group that a policy names as approver changes who approves under that policy, so it is held like an edit to the policy.

## Recommendations and best practices

Adhering to the **principle of least privilege** is crucial for security. Each user should only have the roles essential to perform their duties. Avoid using the broad `Admin` role for daily operations.

See an example with an "Approver" role in the [Permission-Based Access Control](https://docs.dfns.co/guides/permission-based-access-control.md) tutorial.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.