Users
A User represents an individual person's account within the system. It is the primary entity for authentication and identity.
A User object on its own has limited capabilities beyond logging in and managing personal details like SSH keys. Its power comes from the roles and permissions it is granted within the scope of a Customer or Project .
User vs. Permissions
It is crucial to distinguish between the User entity and its permissions. The User API allows for managing the account itself (e.g., name, email), while team management is handled through the add_user actions on the Customer and Project endpoints.
Operations Summary
Core CRUD
List Users
HTTPie Python TypeScript Query Parameters Responses
http \
GET \
https://api.example.com/api/users/ \
Authorization:"Token YOUR_API_TOKEN"
1
2
3
4
5
6
7
8
9
10
11
12 from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.marketplace_service_provider_user_o_enum import MarketplaceServiceProviderUserOEnum # (1)
from waldur_api_client.models.user_field_enum import UserFieldEnum # (2)
from waldur_api_client.api.users import users_list # (3)
client = AuthenticatedClient (
base_url = "https://api.example.com" , token = "YOUR_API_TOKEN"
)
response = users_list . sync ( client = client )
for item in response :
print ( item )
Model Source: MarketplaceServiceProviderUserOEnum
Model Source: UserFieldEnum
API Source: users_list
import { usersList } from 'waldur-js-client' ;
try {
const response = await usersList ({
auth : "Token YOUR_API_TOKEN"
});
console . log ( 'Success:' , response );
} catch ( error ) {
console . error ( 'Error:' , error );
}
Name
Type
Description
agreement_date
string (date-time)
Agreement date after
civil_number
string
customer_uuid
string (uuid)
Customer UUID
date_joined
string (date-time)
Date joined after
description
string
email
string
Email
field
array
full_name
string
Full name
is_active
boolean
Is active
is_staff
boolean
Is staff
is_support
boolean
Is support
job_title
string
Job title
modified
string (date-time)
Date modified after
native_name
string
Native name
o
array
Ordering
organization
string
Organization
organization_roles
string
Organization roles
page
integer
A page number within the paginated result set.
page_size
integer
Number of results to return per page.
phone_number
string
project_roles
string
Project roles
project_uuid
string (uuid)
Project UUID
query
string
Filter by first name, last name, civil number, username or email
registration_method
string
user_keyword
string
User keyword
username
string
Username (exact)
username_list
string
Comma-separated usernames
200 -
The response body is an array of objects, where each object has the following structure:
Field
Type
Description
url
string (uri)
uuid
string (uuid)
username
string
Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters
slug
string
URL-friendly identifier. Only editable by staff users.
full_name
string
native_name
string
job_title
string
email
string (email)
phone_number
string
organization
string
civil_number
string
description
string
is_staff
boolean
Designates whether the user can log into this admin site.
is_active
boolean
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
is_support
boolean
Designates whether the user is a global support user.
token
string
token_lifetime
integer
Token lifetime in seconds.
token_expires_at
string (date-time)
registration_method
string
Indicates what registration method was used.
date_joined
string (date-time)
agreement_date
string (date-time)
Indicates when the user has agreed with the policy.
notifications_enabled
boolean
Designates whether the user is allowed to receive email notifications.
preferred_language
string
permissions
array of objects
permissions.uuid
string (uuid)
permissions.user_uuid
string (uuid)
permissions.user_name
string
permissions.user_slug
string
permissions.created
string (date-time)
permissions.expiration_time
string (date-time)
permissions.is_active
boolean
permissions.created_by_full_name
string
permissions.created_by_username
string
permissions.revoked_by_full_name
string
permissions.revoked_by_username
string
permissions.revoke_reason
string
permissions.role_name
string
permissions.role_description
string
permissions.role_uuid
string (uuid)
permissions.scope_type
string
permissions.scope_uuid
string (uuid)
permissions.scope_name
string
permissions.scope_is_removed
boolean
permissions.customer_uuid
string (uuid)
permissions.customer_name
string
permissions.resource_uuid
string (uuid)
permissions.project_uuid
string (uuid)
requested_email
string
affiliations
array of strings
first_name
string
last_name
string
birth_date
string (date)
identity_provider_name
string
identity_provider_label
string
identity_provider_management_url
string
identity_provider_fields
array of strings
image
string (uri)
identity_source
string
Indicates what identity provider was used.
should_protect_user_details
boolean
has_active_session
boolean
has_usable_password
boolean
ip_address
string
gender
any
User's gender (male, female, or unknown)
personal_title
string
Honorific title (Mr, Ms, Dr, Prof, etc.)
place_of_birth
string
address
string
country_of_residence
string
nationality
string
Primary citizenship (ISO 3166-1 alpha-2 code)
nationalities
array of strings
organization_country
string
organization_type
string
SCHAC URN (e.g., urn:schac:homeOrganizationType:int:university)
organization_registry_code
string
Company registration code of the user's organization, if known
organization_vat_code
string
VAT code of the user's organization
organization_address
string
Postal address of the user's organization
eduperson_assurance
array of strings
uid_number
integer
POSIX UID from the identity provider; used when an offering's uid_source is 'user_attribute'.
primary_gid
integer
POSIX primary GID from the identity provider; used when an offering's gid_source is 'user_attribute'.
is_identity_manager
boolean
Designates whether the user is allowed to manage remote user identities.
can_use_personal_access_tokens
boolean
Designates whether the user is allowed to create and use personal access tokens.
attribute_sources
object (free-form)
Per-attribute source and freshness tracking. Format: {'field_name': {'source': 'isd:', 'timestamp': 'ISO8601'}}.
managed_isds
array of strings
active_isds
array of strings
deactivation_reason
string
Reason why the user was deactivated. Visible to staff and support.
is_admin_deactivated
boolean
Designates that the user was deactivated by an administrator and must not be reactivated automatically by the role-sync task. Visible to staff and support.
Retrieve
HTTPie Python TypeScript Path Parameters Query Parameters Responses
http \
GET \
https://api.example.com/api/users/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
Authorization:"Token YOUR_API_TOKEN"
1
2
3
4
5
6
7
8
9
10
11
12
13 from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.user_field_enum import UserFieldEnum # (1)
from waldur_api_client.api.users import users_retrieve # (2)
client = AuthenticatedClient (
base_url = "https://api.example.com" , token = "YOUR_API_TOKEN"
)
response = users_retrieve . sync (
uuid = "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
client = client
)
print ( response )
Model Source: UserFieldEnum
API Source: users_retrieve
1
2
3
4
5
6
7
8
9
10
11
12
13 import { usersRetrieve } from 'waldur-js-client' ;
try {
const response = await usersRetrieve ({
auth : "Token YOUR_API_TOKEN" ,
path : {
"uuid" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
});
console . log ( 'Success:' , response );
} catch ( error ) {
console . error ( 'Error:' , error );
}
Name
Type
Required
uuid
string (uuid)
✓
200 -
Field
Type
Description
url
string (uri)
uuid
string (uuid)
username
string
Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters
slug
string
URL-friendly identifier. Only editable by staff users.
full_name
string
native_name
string
job_title
string
email
string (email)
phone_number
string
organization
string
civil_number
string
description
string
is_staff
boolean
Designates whether the user can log into this admin site.
is_active
boolean
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
is_support
boolean
Designates whether the user is a global support user.
token
string
token_lifetime
integer
Token lifetime in seconds.
token_expires_at
string (date-time)
registration_method
string
Indicates what registration method was used.
date_joined
string (date-time)
agreement_date
string (date-time)
Indicates when the user has agreed with the policy.
notifications_enabled
boolean
Designates whether the user is allowed to receive email notifications.
preferred_language
string
permissions
array of objects
permissions.uuid
string (uuid)
permissions.user_uuid
string (uuid)
permissions.user_name
string
permissions.user_slug
string
permissions.created
string (date-time)
permissions.expiration_time
string (date-time)
permissions.is_active
boolean
permissions.created_by_full_name
string
permissions.created_by_username
string
permissions.revoked_by_full_name
string
permissions.revoked_by_username
string
permissions.revoke_reason
string
permissions.role_name
string
permissions.role_description
string
permissions.role_uuid
string (uuid)
permissions.scope_type
string
permissions.scope_uuid
string (uuid)
permissions.scope_name
string
permissions.scope_is_removed
boolean
permissions.customer_uuid
string (uuid)
permissions.customer_name
string
permissions.resource_uuid
string (uuid)
permissions.project_uuid
string (uuid)
requested_email
string
affiliations
array of strings
first_name
string
last_name
string
birth_date
string (date)
identity_provider_name
string
identity_provider_label
string
identity_provider_management_url
string
identity_provider_fields
array of strings
image
string (uri)
identity_source
string
Indicates what identity provider was used.
should_protect_user_details
boolean
has_active_session
boolean
has_usable_password
boolean
ip_address
string
gender
any
User's gender (male, female, or unknown)
personal_title
string
Honorific title (Mr, Ms, Dr, Prof, etc.)
place_of_birth
string
address
string
country_of_residence
string
nationality
string
Primary citizenship (ISO 3166-1 alpha-2 code)
nationalities
array of strings
organization_country
string
organization_type
string
SCHAC URN (e.g., urn:schac:homeOrganizationType:int:university)
organization_registry_code
string
Company registration code of the user's organization, if known
organization_vat_code
string
VAT code of the user's organization
organization_address
string
Postal address of the user's organization
eduperson_assurance
array of strings
uid_number
integer
POSIX UID from the identity provider; used when an offering's uid_source is 'user_attribute'.
primary_gid
integer
POSIX primary GID from the identity provider; used when an offering's gid_source is 'user_attribute'.
is_identity_manager
boolean
Designates whether the user is allowed to manage remote user identities.
can_use_personal_access_tokens
boolean
Designates whether the user is allowed to create and use personal access tokens.
attribute_sources
object (free-form)
Per-attribute source and freshness tracking. Format: {'field_name': {'source': 'isd:', 'timestamp': 'ISO8601'}}.
managed_isds
array of strings
active_isds
array of strings
deactivation_reason
string
Reason why the user was deactivated. Visible to staff and support.
is_admin_deactivated
boolean
Designates that the user was deactivated by an administrator and must not be reactivated automatically by the role-sync task. Visible to staff and support.
Create
HTTPie Python TypeScript Request Body (required) Responses
http \
POST \
https://api.example.com/api/users/ \
Authorization:"Token YOUR_API_TOKEN" \
username = "alice" \
email = "alice@example.com"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.user_request import UserRequest # (1)
from waldur_api_client.api.users import users_create # (2)
client = AuthenticatedClient (
base_url = "https://api.example.com" , token = "YOUR_API_TOKEN"
)
body_data = UserRequest (
username = "alice" ,
email = "alice@example.com"
)
response = users_create . sync (
client = client ,
body = body_data
)
print ( response )
Model Source: UserRequest
API Source: users_create
1
2
3
4
5
6
7
8
9
10
11
12
13
14 import { usersCreate } from 'waldur-js-client' ;
try {
const response = await usersCreate ({
auth : "Token YOUR_API_TOKEN" ,
body : {
"username" : "alice" ,
"email" : "alice@example.com"
}
});
console . log ( 'Success:' , response );
} catch ( error ) {
console . error ( 'Error:' , error );
}
Field
Type
Required
Description
username
string
✓
Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters
slug
string
URL-friendly identifier. Only editable by staff users.
native_name
string
job_title
string
email
string (email)
✓
phone_number
string
organization
string
description
string
is_staff
boolean
Designates whether the user can log into this admin site.
is_active
boolean
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
is_support
boolean
Designates whether the user is a global support user.
token_lifetime
integer
Token lifetime in seconds.
agree_with_policy
boolean
User must agree with the policy to register.Constraints: write-only
notifications_enabled
boolean
Designates whether the user is allowed to receive email notifications.
preferred_language
string
affiliations
array of strings
first_name
string
last_name
string
birth_date
string (date)
image
string (binary)
gender
any
User's gender (male, female, or unknown)
personal_title
string
Honorific title (Mr, Ms, Dr, Prof, etc.)
place_of_birth
string
address
string
country_of_residence
string
nationality
string
Primary citizenship (ISO 3166-1 alpha-2 code)
nationalities
array of strings
organization_country
string
organization_type
string
SCHAC URN (e.g., urn:schac:homeOrganizationType:int:university)
organization_registry_code
string
Company registration code of the user's organization, if known
organization_vat_code
string
VAT code of the user's organization
organization_address
string
Postal address of the user's organization
eduperson_assurance
array of strings
is_identity_manager
boolean
Designates whether the user is allowed to manage remote user identities.
can_use_personal_access_tokens
boolean
Designates whether the user is allowed to create and use personal access tokens.
managed_isds
array of strings
active_isds
array of strings
deactivation_reason
string
Reason why the user was deactivated. Visible to staff and support.
201 -
Field
Type
Description
url
string (uri)
uuid
string (uuid)
username
string
Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters
slug
string
URL-friendly identifier. Only editable by staff users.
full_name
string
native_name
string
job_title
string
email
string (email)
phone_number
string
organization
string
civil_number
string
description
string
is_staff
boolean
Designates whether the user can log into this admin site.
is_active
boolean
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
is_support
boolean
Designates whether the user is a global support user.
token
string
token_lifetime
integer
Token lifetime in seconds.
token_expires_at
string (date-time)
registration_method
string
Indicates what registration method was used.
date_joined
string (date-time)
agreement_date
string (date-time)
Indicates when the user has agreed with the policy.
notifications_enabled
boolean
Designates whether the user is allowed to receive email notifications.
preferred_language
string
permissions
array of objects
permissions.uuid
string (uuid)
permissions.user_uuid
string (uuid)
permissions.user_name
string
permissions.user_slug
string
permissions.created
string (date-time)
permissions.expiration_time
string (date-time)
permissions.is_active
boolean
permissions.created_by_full_name
string
permissions.created_by_username
string
permissions.revoked_by_full_name
string
permissions.revoked_by_username
string
permissions.revoke_reason
string
permissions.role_name
string
permissions.role_description
string
permissions.role_uuid
string (uuid)
permissions.scope_type
string
permissions.scope_uuid
string (uuid)
permissions.scope_name
string
permissions.scope_is_removed
boolean
permissions.customer_uuid
string (uuid)
permissions.customer_name
string
permissions.resource_uuid
string (uuid)
permissions.project_uuid
string (uuid)
requested_email
string
affiliations
array of strings
first_name
string
last_name
string
birth_date
string (date)
identity_provider_name
string
identity_provider_label
string
identity_provider_management_url
string
identity_provider_fields
array of strings
image
string (uri)
identity_source
string
Indicates what identity provider was used.
should_protect_user_details
boolean
has_active_session
boolean
has_usable_password
boolean
ip_address
string
gender
any
User's gender (male, female, or unknown)
personal_title
string
Honorific title (Mr, Ms, Dr, Prof, etc.)
place_of_birth
string
address
string
country_of_residence
string
nationality
string
Primary citizenship (ISO 3166-1 alpha-2 code)
nationalities
array of strings
organization_country
string
organization_type
string
SCHAC URN (e.g., urn:schac:homeOrganizationType:int:university)
organization_registry_code
string
Company registration code of the user's organization, if known
organization_vat_code
string
VAT code of the user's organization
organization_address
string
Postal address of the user's organization
eduperson_assurance
array of strings
uid_number
integer
POSIX UID from the identity provider; used when an offering's uid_source is 'user_attribute'.
primary_gid
integer
POSIX primary GID from the identity provider; used when an offering's gid_source is 'user_attribute'.
is_identity_manager
boolean
Designates whether the user is allowed to manage remote user identities.
can_use_personal_access_tokens
boolean
Designates whether the user is allowed to create and use personal access tokens.
attribute_sources
object (free-form)
Per-attribute source and freshness tracking. Format: {'field_name': {'source': 'isd:', 'timestamp': 'ISO8601'}}.
managed_isds
array of strings
active_isds
array of strings
deactivation_reason
string
Reason why the user was deactivated. Visible to staff and support.
is_admin_deactivated
boolean
Designates that the user was deactivated by an administrator and must not be reactivated automatically by the role-sync task. Visible to staff and support.
Synchronize user details from eduTEAMS
Pull SCIM attributes from external IdP for this user
Staff-only action that pulls the user's attributes from the configured external SCIM 2.0 directory (SCIM_PULL_API_URL). Pulled attributes are merged via the same source-aware policy as inbound SCIM and the Identity Bridge.
Recalculate user actions for a specific user
Staff-only action to trigger recalculation of user actions for a specific user.
Update
HTTPie Python TypeScript Path Parameters Request Body (required) Responses
http \
PUT \
https://api.example.com/api/users/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
Authorization:"Token YOUR_API_TOKEN" \
username = "alice" \
email = "alice@example.com"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.user_request import UserRequest # (1)
from waldur_api_client.api.users import users_update # (2)
client = AuthenticatedClient (
base_url = "https://api.example.com" , token = "YOUR_API_TOKEN"
)
body_data = UserRequest (
username = "alice" ,
email = "alice@example.com"
)
response = users_update . sync (
uuid = "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
client = client ,
body = body_data
)
print ( response )
Model Source: UserRequest
API Source: users_update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 import { usersUpdate } from 'waldur-js-client' ;
try {
const response = await usersUpdate ({
auth : "Token YOUR_API_TOKEN" ,
path : {
"uuid" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
body : {
"username" : "alice" ,
"email" : "alice@example.com"
}
});
console . log ( 'Success:' , response );
} catch ( error ) {
console . error ( 'Error:' , error );
}
Name
Type
Required
uuid
string (uuid)
✓
Field
Type
Required
Description
username
string
✓
Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters
slug
string
URL-friendly identifier. Only editable by staff users.
native_name
string
job_title
string
email
string (email)
✓
phone_number
string
organization
string
description
string
is_staff
boolean
Designates whether the user can log into this admin site.
is_active
boolean
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
is_support
boolean
Designates whether the user is a global support user.
token_lifetime
integer
Token lifetime in seconds.
agree_with_policy
boolean
User must agree with the policy to register.Constraints: write-only
notifications_enabled
boolean
Designates whether the user is allowed to receive email notifications.
preferred_language
string
affiliations
array of strings
first_name
string
last_name
string
birth_date
string (date)
image
string (binary)
gender
any
User's gender (male, female, or unknown)
personal_title
string
Honorific title (Mr, Ms, Dr, Prof, etc.)
place_of_birth
string
address
string
country_of_residence
string
nationality
string
Primary citizenship (ISO 3166-1 alpha-2 code)
nationalities
array of strings
organization_country
string
organization_type
string
SCHAC URN (e.g., urn:schac:homeOrganizationType:int:university)
organization_registry_code
string
Company registration code of the user's organization, if known
organization_vat_code
string
VAT code of the user's organization
organization_address
string
Postal address of the user's organization
eduperson_assurance
array of strings
is_identity_manager
boolean
Designates whether the user is allowed to manage remote user identities.
can_use_personal_access_tokens
boolean
Designates whether the user is allowed to create and use personal access tokens.
managed_isds
array of strings
active_isds
array of strings
deactivation_reason
string
Reason why the user was deactivated. Visible to staff and support.
200 -
Field
Type
Description
url
string (uri)
uuid
string (uuid)
username
string
Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters
slug
string
URL-friendly identifier. Only editable by staff users.
full_name
string
native_name
string
job_title
string
email
string (email)
phone_number
string
organization
string
civil_number
string
description
string
is_staff
boolean
Designates whether the user can log into this admin site.
is_active
boolean
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
is_support
boolean
Designates whether the user is a global support user.
token
string
token_lifetime
integer
Token lifetime in seconds.
token_expires_at
string (date-time)
registration_method
string
Indicates what registration method was used.
date_joined
string (date-time)
agreement_date
string (date-time)
Indicates when the user has agreed with the policy.
notifications_enabled
boolean
Designates whether the user is allowed to receive email notifications.
preferred_language
string
permissions
array of objects
permissions.uuid
string (uuid)
permissions.user_uuid
string (uuid)
permissions.user_name
string
permissions.user_slug
string
permissions.created
string (date-time)
permissions.expiration_time
string (date-time)
permissions.is_active
boolean
permissions.created_by_full_name
string
permissions.created_by_username
string
permissions.revoked_by_full_name
string
permissions.revoked_by_username
string
permissions.revoke_reason
string
permissions.role_name
string
permissions.role_description
string
permissions.role_uuid
string (uuid)
permissions.scope_type
string
permissions.scope_uuid
string (uuid)
permissions.scope_name
string
permissions.scope_is_removed
boolean
permissions.customer_uuid
string (uuid)
permissions.customer_name
string
permissions.resource_uuid
string (uuid)
permissions.project_uuid
string (uuid)
requested_email
string
affiliations
array of strings
first_name
string
last_name
string
birth_date
string (date)
identity_provider_name
string
identity_provider_label
string
identity_provider_management_url
string
identity_provider_fields
array of strings
image
string (uri)
identity_source
string
Indicates what identity provider was used.
should_protect_user_details
boolean
has_active_session
boolean
has_usable_password
boolean
ip_address
string
gender
any
User's gender (male, female, or unknown)
personal_title
string
Honorific title (Mr, Ms, Dr, Prof, etc.)
place_of_birth
string
address
string
country_of_residence
string
nationality
string
Primary citizenship (ISO 3166-1 alpha-2 code)
nationalities
array of strings
organization_country
string
organization_type
string
SCHAC URN (e.g., urn:schac:homeOrganizationType:int:university)
organization_registry_code
string
Company registration code of the user's organization, if known
organization_vat_code
string
VAT code of the user's organization
organization_address
string
Postal address of the user's organization
eduperson_assurance
array of strings
uid_number
integer
POSIX UID from the identity provider; used when an offering's uid_source is 'user_attribute'.
primary_gid
integer
POSIX primary GID from the identity provider; used when an offering's gid_source is 'user_attribute'.
is_identity_manager
boolean
Designates whether the user is allowed to manage remote user identities.
can_use_personal_access_tokens
boolean
Designates whether the user is allowed to create and use personal access tokens.
attribute_sources
object (free-form)
Per-attribute source and freshness tracking. Format: {'field_name': {'source': 'isd:', 'timestamp': 'ISO8601'}}.
managed_isds
array of strings
active_isds
array of strings
deactivation_reason
string
Reason why the user was deactivated. Visible to staff and support.
is_admin_deactivated
boolean
Designates that the user was deactivated by an administrator and must not be reactivated automatically by the role-sync task. Visible to staff and support.
Partial Update
HTTPie Python TypeScript Path Parameters Request Body Responses
http \
PATCH \
https://api.example.com/api/users/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
Authorization:"Token YOUR_API_TOKEN"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.patched_user_request import PatchedUserRequest # (1)
from waldur_api_client.api.users import users_partial_update # (2)
client = AuthenticatedClient (
base_url = "https://api.example.com" , token = "YOUR_API_TOKEN"
)
body_data = PatchedUserRequest ()
response = users_partial_update . sync (
uuid = "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
client = client ,
body = body_data
)
print ( response )
Model Source: PatchedUserRequest
API Source: users_partial_update
1
2
3
4
5
6
7
8
9
10
11
12
13 import { usersPartialUpdate } from 'waldur-js-client' ;
try {
const response = await usersPartialUpdate ({
auth : "Token YOUR_API_TOKEN" ,
path : {
"uuid" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
});
console . log ( 'Success:' , response );
} catch ( error ) {
console . error ( 'Error:' , error );
}
Name
Type
Required
uuid
string (uuid)
✓
Field
Type
Required
Description
username
string
Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters
slug
string
URL-friendly identifier. Only editable by staff users.
native_name
string
job_title
string
phone_number
string
organization
string
description
string
is_staff
boolean
Designates whether the user can log into this admin site.
is_active
boolean
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
is_support
boolean
Designates whether the user is a global support user.
token_lifetime
integer
Token lifetime in seconds.
agree_with_policy
boolean
User must agree with the policy to register.Constraints: write-only
notifications_enabled
boolean
Designates whether the user is allowed to receive email notifications.
preferred_language
string
affiliations
array of strings
first_name
string
last_name
string
birth_date
string (date)
image
string (binary)
gender
any
User's gender (male, female, or unknown)
personal_title
string
Honorific title (Mr, Ms, Dr, Prof, etc.)
place_of_birth
string
address
string
country_of_residence
string
nationality
string
Primary citizenship (ISO 3166-1 alpha-2 code)
nationalities
array of strings
organization_country
string
organization_type
string
SCHAC URN (e.g., urn:schac:homeOrganizationType:int:university)
organization_registry_code
string
Company registration code of the user's organization, if known
organization_vat_code
string
VAT code of the user's organization
organization_address
string
Postal address of the user's organization
eduperson_assurance
array of strings
is_identity_manager
boolean
Designates whether the user is allowed to manage remote user identities.
can_use_personal_access_tokens
boolean
Designates whether the user is allowed to create and use personal access tokens.
managed_isds
array of strings
active_isds
array of strings
deactivation_reason
string
Reason why the user was deactivated. Visible to staff and support.
200 -
Field
Type
Description
url
string (uri)
uuid
string (uuid)
username
string
Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters
slug
string
URL-friendly identifier. Only editable by staff users.
full_name
string
native_name
string
job_title
string
email
string (email)
phone_number
string
organization
string
civil_number
string
description
string
is_staff
boolean
Designates whether the user can log into this admin site.
is_active
boolean
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
is_support
boolean
Designates whether the user is a global support user.
token
string
token_lifetime
integer
Token lifetime in seconds.
token_expires_at
string (date-time)
registration_method
string
Indicates what registration method was used.
date_joined
string (date-time)
agreement_date
string (date-time)
Indicates when the user has agreed with the policy.
notifications_enabled
boolean
Designates whether the user is allowed to receive email notifications.
preferred_language
string
permissions
array of objects
permissions.uuid
string (uuid)
permissions.user_uuid
string (uuid)
permissions.user_name
string
permissions.user_slug
string
permissions.created
string (date-time)
permissions.expiration_time
string (date-time)
permissions.is_active
boolean
permissions.created_by_full_name
string
permissions.created_by_username
string
permissions.revoked_by_full_name
string
permissions.revoked_by_username
string
permissions.revoke_reason
string
permissions.role_name
string
permissions.role_description
string
permissions.role_uuid
string (uuid)
permissions.scope_type
string
permissions.scope_uuid
string (uuid)
permissions.scope_name
string
permissions.scope_is_removed
boolean
permissions.customer_uuid
string (uuid)
permissions.customer_name
string
permissions.resource_uuid
string (uuid)
permissions.project_uuid
string (uuid)
requested_email
string
affiliations
array of strings
first_name
string
last_name
string
birth_date
string (date)
identity_provider_name
string
identity_provider_label
string
identity_provider_management_url
string
identity_provider_fields
array of strings
image
string (uri)
identity_source
string
Indicates what identity provider was used.
should_protect_user_details
boolean
has_active_session
boolean
has_usable_password
boolean
ip_address
string
gender
any
User's gender (male, female, or unknown)
personal_title
string
Honorific title (Mr, Ms, Dr, Prof, etc.)
place_of_birth
string
address
string
country_of_residence
string
nationality
string
Primary citizenship (ISO 3166-1 alpha-2 code)
nationalities
array of strings
organization_country
string
organization_type
string
SCHAC URN (e.g., urn:schac:homeOrganizationType:int:university)
organization_registry_code
string
Company registration code of the user's organization, if known
organization_vat_code
string
VAT code of the user's organization
organization_address
string
Postal address of the user's organization
eduperson_assurance
array of strings
uid_number
integer
POSIX UID from the identity provider; used when an offering's uid_source is 'user_attribute'.
primary_gid
integer
POSIX primary GID from the identity provider; used when an offering's gid_source is 'user_attribute'.
is_identity_manager
boolean
Designates whether the user is allowed to manage remote user identities.
can_use_personal_access_tokens
boolean
Designates whether the user is allowed to create and use personal access tokens.
attribute_sources
object (free-form)
Per-attribute source and freshness tracking. Format: {'field_name': {'source': 'isd:', 'timestamp': 'ISO8601'}}.
managed_isds
array of strings
active_isds
array of strings
deactivation_reason
string
Reason why the user was deactivated. Visible to staff and support.
is_admin_deactivated
boolean
Designates that the user was deactivated by an administrator and must not be reactivated automatically by the role-sync task. Visible to staff and support.
Delete
Other Actions
Get user data access history
Shows historical log of who has accessed the user's profile data. Regular users see anonymized accessor categories. Staff/support see full details including accessor identity, IP, and context.
HTTPie Python TypeScript Path Parameters Query Parameters Responses
http \
GET \
https://api.example.com/api/users/a1b2c3d4-e5f6-7890-abcd-ef1234567890/data_access_history/ \
Authorization:"Token YOUR_API_TOKEN"
1
2
3
4
5
6
7
8
9
10
11
12
13
14 from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.marketplace_service_provider_user_o_enum import MarketplaceServiceProviderUserOEnum # (1)
from waldur_api_client.api.users import users_data_access_history_list # (2)
client = AuthenticatedClient (
base_url = "https://api.example.com" , token = "YOUR_API_TOKEN"
)
response = users_data_access_history_list . sync (
uuid = "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
client = client
)
for item in response :
print ( item )
Model Source: MarketplaceServiceProviderUserOEnum
API Source: users_data_access_history_list
1
2
3
4
5
6
7
8
9
10
11
12
13 import { usersDataAccessHistoryList } from 'waldur-js-client' ;
try {
const response = await usersDataAccessHistoryList ({
auth : "Token YOUR_API_TOKEN" ,
path : {
"uuid" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
});
console . log ( 'Success:' , response );
} catch ( error ) {
console . error ( 'Error:' , error );
}
Name
Type
Required
uuid
string (uuid)
✓
Name
Type
Description
accessor_type
string
Filter by accessor type (staff, support, organization_member, self)
agreement_date
string (date-time)
Agreement date after
civil_number
string
customer_uuid
string (uuid)
Customer UUID
date_joined
string (date-time)
Date joined after
description
string
email
string
Email
end_date
string (date)
Filter logs until this date (inclusive)
full_name
string
Full name
is_active
boolean
Is active
is_staff
boolean
Is staff
is_support
boolean
Is support
job_title
string
Job title
modified
string (date-time)
Date modified after
native_name
string
Native name
o
array
Ordering
organization
string
Organization
organization_roles
string
Organization roles
page
integer
A page number within the paginated result set.
page_size
integer
Number of results to return per page.
phone_number
string
project_roles
string
Project roles
project_uuid
string (uuid)
Project UUID
query
string
Filter by first name, last name, civil number, username or email
registration_method
string
start_date
string (date)
Filter logs from this date (inclusive)
user_keyword
string
User keyword
username
string
Username (exact)
username_list
string
Comma-separated usernames
200 -
The response body is an array of objects, where each object has the following structure:
Field
Type
Description
uuid
string (uuid)
timestamp
string (date-time)
accessor_type
string
Enum: staff, support, organization_member, service_provider, self
accessed_fields
array of strings
accessor_category
string
accessor
object
accessor.uuid
string (uuid)
accessor.username
string
accessor.full_name
string
ip_address
any
An IPv4 or IPv6 address.
context
object (free-form)
Get user data access visibility
Shows who has access to the user's profile data. Includes administrative access (staff/support), organizational access (same customer/project), and service provider access (via consent). Regular users see counts for admin access; staff/support see individual records.
Get object state at a specific timestamp
Returns the state of the object as it was at the specified timestamp. Only accessible by staff and support users.
Get version history
Returns the version history for this object. Only accessible by staff and support users.
Get identity bridge status for a user
Returns diagnostic information about a user's identity bridge state: active ISDs, per-attribute source tracking with staleness detection, and effective bridge-writable fields. Staff only.
Get current user details
Get current user details, including authentication token and profile completeness status.
HTTPie Python TypeScript Query Parameters Responses
http \
GET \
https://api.example.com/api/users/me/ \
Authorization:"Token YOUR_API_TOKEN"
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.user_me_field_enum import UserMeFieldEnum # (1)
from waldur_api_client.api.users import users_me_retrieve # (2)
client = AuthenticatedClient (
base_url = "https://api.example.com" , token = "YOUR_API_TOKEN"
)
response = users_me_retrieve . sync ( client = client )
print ( response )
Model Source: UserMeFieldEnum
API Source: users_me_retrieve
import { usersMeRetrieve } from 'waldur-js-client' ;
try {
const response = await usersMeRetrieve ({
auth : "Token YOUR_API_TOKEN"
});
console . log ( 'Success:' , response );
} catch ( error ) {
console . error ( 'Error:' , error );
}
200 -
Field
Type
Description
url
string (uri)
uuid
string (uuid)
username
string
Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters
slug
string
URL-friendly identifier. Only editable by staff users.
full_name
string
native_name
string
job_title
string
email
string (email)
phone_number
string
organization
string
civil_number
string
description
string
is_staff
boolean
Designates whether the user can log into this admin site.
is_active
boolean
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
is_support
boolean
Designates whether the user is a global support user.
token
string
token_lifetime
integer
Token lifetime in seconds.
token_expires_at
string (date-time)
registration_method
string
Indicates what registration method was used.
date_joined
string (date-time)
agreement_date
string (date-time)
Indicates when the user has agreed with the policy.
notifications_enabled
boolean
Designates whether the user is allowed to receive email notifications.
preferred_language
string
permissions
array of objects
permissions.uuid
string (uuid)
permissions.user_uuid
string (uuid)
permissions.user_name
string
permissions.user_slug
string
permissions.created
string (date-time)
permissions.expiration_time
string (date-time)
permissions.is_active
boolean
permissions.created_by_full_name
string
permissions.created_by_username
string
permissions.revoked_by_full_name
string
permissions.revoked_by_username
string
permissions.revoke_reason
string
permissions.role_name
string
permissions.role_description
string
permissions.role_uuid
string (uuid)
permissions.scope_type
string
permissions.scope_uuid
string (uuid)
permissions.scope_name
string
permissions.scope_is_removed
boolean
permissions.customer_uuid
string (uuid)
permissions.customer_name
string
permissions.resource_uuid
string (uuid)
permissions.project_uuid
string (uuid)
requested_email
string
affiliations
array of strings
first_name
string
last_name
string
birth_date
string (date)
identity_provider_name
string
identity_provider_label
string
identity_provider_management_url
string
identity_provider_fields
array of strings
image
string (uri)
identity_source
string
Indicates what identity provider was used.
should_protect_user_details
boolean
has_active_session
boolean
has_usable_password
boolean
ip_address
string
gender
any
User's gender (male, female, or unknown)
personal_title
string
Honorific title (Mr, Ms, Dr, Prof, etc.)
place_of_birth
string
address
string
country_of_residence
string
nationality
string
Primary citizenship (ISO 3166-1 alpha-2 code)
nationalities
array of strings
organization_country
string
organization_type
string
SCHAC URN (e.g., urn:schac:homeOrganizationType:int:university)
organization_registry_code
string
Company registration code of the user's organization, if known
organization_vat_code
string
VAT code of the user's organization
organization_address
string
Postal address of the user's organization
eduperson_assurance
array of strings
uid_number
integer
POSIX UID from the identity provider; used when an offering's uid_source is 'user_attribute'.
primary_gid
integer
POSIX primary GID from the identity provider; used when an offering's gid_source is 'user_attribute'.
is_identity_manager
boolean
Designates whether the user is allowed to manage remote user identities.
can_use_personal_access_tokens
boolean
Designates whether the user is allowed to create and use personal access tokens.
attribute_sources
object (free-form)
Per-attribute source and freshness tracking. Format: {'field_name': {'source': 'isd:', 'timestamp': 'ISO8601'}}.
managed_isds
array of strings
active_isds
array of strings
deactivation_reason
string
Reason why the user was deactivated. Visible to staff and support.
is_admin_deactivated
boolean
Designates that the user was deactivated by an administrator and must not be reactivated automatically by the role-sync task. Visible to staff and support.
profile_completeness
any
Check profile completeness
Check if user profile is complete with all mandatory attributes.
Get user auth token
Get user counts by active status
Returns aggregated counts of users by active/inactive status. Staff or support only.
Get user counts by preferred language
Returns aggregated counts of users by preferred language. Staff or support only.
Get user registration trends by month
Returns user registration counts aggregated by month. Staff or support only.
Cancel email change request
Cancel email update request
Request email change
Allows to change email for user.
Change user password
Allows staff user to change password for any user.
Confirm email change
Confirm email update using code
Refresh user auth token
Remove user password
Allows staff user to remove password for any user, making it unusable.
Trigger SCIM synchronization for all users
Staff-only action to queue SCIM synchronization for all users.
Send action notification to a specific user
Staff-only action to send a pending actions digest notification to a specific user.