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

# User Management

> List, invite, disable, and manage roles and permissions for Paradime workspace users programmatically with the User Management module of the paradime-io SDK.

### Overview

> [!NOTE]
>
> **Prerequisites:**
>
> * This feature is available with the [**Paradime Enterprise pack**](https://www.paradime.io/enterprise).
> * Your API keys ***must*** have either User Management Admin or User Metadata Viewer capabilities.

> [!NOTE]
>
> These examples authenticate with an **account API key** (`api_secret="prdm_cmp_..."` plus `workspace_uid`), which requires `paradime-io` 6.0.0 or later. Legacy **workspace API keys** (`api_key` + `api_secret`) are still supported. See Getting Started.

The User Management module enables you to efficiently administer and regulate user access within your workspace.

This module offers a comprehensive set of tools to list all users, send invitations to new members, disable users' accounts, and precisely control users' roles and permissions.

### Get all active users

Retrieves all active users.

**Returns** `List[ActiveUser]`

A list of active user objects.

```python theme={"system"}
from paradime import Paradime

paradime = Paradime(api_endpoint="API_ENDPOINT", api_secret="prdm_cmp_...", workspace_uid="WORKSPACE_UID")

active_users = paradime.users.list_active()
```

### Get a user by email

Retrieves a user by email.

**email** `str` *required*

The email of the user to retrieve.

**Returns** `ActiveUser`

The user object.

```python theme={"system"}
from paradime import Paradime

paradime = Paradime(api_endpoint="API_ENDPOINT", api_secret="prdm_cmp_...", workspace_uid="WORKSPACE_UID")

user = paradime.users.get_by_email(email="john@acme.io")
```

### Get all invited users

Retrieves all invited users.

**Returns** `List[InvitedUser]`

A list of invited user objects.

```python theme={"system"}
from paradime import Paradime

paradime = Paradime(api_endpoint="API_ENDPOINT", api_secret="prdm_cmp_...", workspace_uid="WORKSPACE_UID")

invited_users = paradime.users.list_invited()
```

### Invite a user

Invites a user to the workspace.

**email** `str` *required*

The email of the user to invite.

**account\_type** `UserAccountType` *required*

The account type of the user to invite.

**Returns** `None`

This method returns nothing.

```python theme={"system"}
from paradime import Paradime
from paradime.apis.users.types import UserAccountType

paradime = Paradime(api_endpoint="API_ENDPOINT", api_secret="prdm_cmp_...", workspace_uid="WORKSPACE_UID")

# Invite a user as an admin
paradime.users.invite(email="bhuvan@paradime.io", account_type=UserAccountType.ADMIN)
```

### Update a user's account type

Updates the account type of a user.

**user\_uid** `str` *required*

The ID of the user to update the account type for.

**account\_type** `UserAccountType` *required*

The new account type for the user.

**Returns** `None`

This method returns nothing.

```python theme={"system"}
from paradime import Paradime
from paradime.apis.users.types import UserAccountType

paradime = Paradime(api_endpoint="API_ENDPOINT", api_secret="prdm_cmp_...", workspace_uid="WORKSPACE_UID")

paradime.users.update_account_type(user_uid=user.uid, account_type=UserAccountType.DEVELOPER)
```

### Disable a user

Disable a user in the workspace.

**user\_uid** `str` *required*

The ID of the user to disable.

**Returns** `None`

This method returns nothing.

```python theme={"system"}
from paradime import Paradime

paradime = Paradime(api_endpoint="API_ENDPOINT", api_secret="prdm_cmp_...", workspace_uid="WORKSPACE_UID")

paradime.users.disable(user_uid=user.uid)
```


## Related topics

- [User Management API](https://docs.paradime.io/developers/graphql-api/api-reference/user-management-api.md)
- [Workspace Management](https://docs.paradime.io/developers/python-sdk/modules/workspace-management.md)
- [Manage Users](https://docs.paradime.io/products/settings/users/manage-users.md)
- [Manage users](https://docs.paradime.io/guides/paradime-101/getting-started-with-your-paradime-workspace/managing-users-in-the-workspace.md)
- [Workspace Management API](https://docs.paradime.io/developers/graphql-api/api-reference/workspace-management-api.md)


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