Skip to main content
The Users API allows you to manage user accounts, service users, roles, and permissions in your NetBird network.

List All Users

Returns a list of all users in your account.
boolean
Filter users and return either regular users or service users
string
User ID from the identity provider
string
User’s email address
string
User’s full name from the identity provider
string
User’s NetBird account role: admin, user, or owner
string
User’s status: active, invited, or blocked
array
Group IDs to auto-assign to peers registered by this user
boolean
Indicates if this is a service user (API-only account)
boolean
Indicates if the user is blocked from using the system
boolean
Indicates if the user requires admin approval before activation

Get Current User

Retrieve information about the currently authenticated user.
Example

Create a User

Create a new service user or send an invitation to a regular user.
string
User’s email address to send invite to
string
User’s full name
string
required
User’s NetBird account role: admin, user, or owner
array
required
Group IDs to auto-assign to peers registered by this user
boolean
required
Set to true to create a service user (API-only account)
When creating a service user with an embedded IdP, the response includes an auto-generated password field. This password is only returned once - save it securely!

Update a User

Update user information including role, groups, and blocked status.
string
required
The unique identifier of the user
string
required
User’s NetBird account role
array
required
Group IDs to auto-assign to peers registered by this user
boolean
required
Set to true to block the user from accessing the system
Example

Delete a User

Remove a user from the account. This removes the user from NetBird but typically leaves the identity provider account intact.
string
required
The unique identifier of the user
Example
Deleting a user will:
  • Remove their access to the NetBird network
  • Delete all peers registered by the user (unless configured otherwise)
  • Remove them from all groups
This action cannot be undone.

User Approval

Approve a User

Approve a user who is pending approval (when user approval is enabled in account settings).
Example

Reject a User

Reject a pending user and remove them from the account.
Example

Resend Invitation

Resend an invitation email to a user who hasn’t accepted their invite yet.
Example

Change User Password

This endpoint is only available when the embedded identity provider (Dex) is enabled. Users can only change their own password.
string
required
The unique identifier of the user (must be the current user)
string
required
The current password
string
required
The new password to set
Example

User Roles

NetBird supports three user roles:

Owner

Full administrative access including billing and account deletion

Admin

Manage users, peers, policies, routes, and settings

User

Limited access based on configured permissions

Service Users

Service users are API-only accounts without dashboard access, ideal for:
  • CI/CD automation
  • Infrastructure as Code
  • Monitoring and alerting systems
  • Third-party integrations
Service users:
  • Cannot log into the dashboard
  • Authenticate using Personal Access Tokens
  • Can be assigned limited permissions
  • Don’t count towards user limits in some plans