List admin roles
Returns a list of admin roles available in Kiteworks (e.g. System Admin, Application Admin).
Sorting options
With parameters
Determines the detail level of the response body.
Returns a list of admin role records.
Admin role unique identifier
Display name of the admin role
Admin role globally unique identifier
HATEOAS links associated with the entity
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/adminRoles" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/adminRoles"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Get an admin role
Returns the details of the specified admin role.
The unique identifier of the admin role.
Returns the admin role record.
Admin role unique identifier
Display name of the admin role
Admin role globally unique identifier
HATEOAS links associated with the entity
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/adminRoles/:id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # The unique identifier of the admin role.
url = f"https://{{instance}}.kiteworks.com/rest/adminRoles/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())List users with an admin role
Returns the list of users who have been assigned the specified admin role.
The unique identifier of the admin role.
Filter users based on their email address.
Filter users based on their email address.. Search for results that contain the specified characters in this parameter.
Filter users based on their full name.
Filter users based on their full name.. Search for results that contain the specified characters in this parameter.
Filter users based on their metadata information.
Filter users whose metadata contains the specified characters.
Filter users based on whether they have been deleted.
Filter users based on whether they are active in the system.
Filter users based on their verification status.
Filter users based on whether they are suspended.
Filter users who are recipients of specific items.
Filter users whose profiles allow collaboration access.
Filter users based on the creation date of their account.
Filter users based on the creation date of their account.. Search for results where this parameter value is greater than the specified value.
Filter users based on the creation date of their account.. Search for results where this parameter value is greater than or equal to the specified value.
Filter users based on the creation date of their account.. Search for results where this parameter value is less than the specified value.
Filter users based on the creation date of their account.. Search for results where this parameter value is less than or equal to the specified value.
Sorting options
Offset
Limit
If specified, "offset" parameter will be ignored
and the page containing entity with this Id will be returned.
With parameters
Determines the detail level of the response body.
Returns a list of user records assigned to the specified admin role.
The unique identifier of the user
The unique identifier of the user's root Kiteworks directory.
Date and time the user account was created
The user's email
The unique identifier of the user's mydir system directory.
The name of the user
The unique identifier of the user's 'My Folder'.
The unique identifier of the user type (profile).
Indicates whether the user is an internal user
URL to the user's profile icon image
Indicates whether the user is an External Distribution List
Key name of the custom metadata attribute associated with the user
Value assigned to the custom metadata attribute for the user
The ID of the admin role assigned to the user.
HATEOAS links associated with the entity
Indicates whether the user is an actual kitework user
Indicates whether the user is suspended
Indicates whether the user has been deleted
Authentication type.
- 0: No authentication,
- 1: Authentication by kiteworks,
- 2: Authentication by LDAP,
- 4: Authentication by SSO
Indicates whether the user is verified
Indicates whether the user has been deactivated
User's last activity datetime
The exact timestamp when the user's password will expire
Total number of items available.
Maximum number of items returned per page.
Number of items skipped before the current page.
Forbidden
Possible error codes: ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/adminRoles/:id/users" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # The unique identifier of the admin role.
url = f"https://{{instance}}.kiteworks.com/rest/adminRoles/{id}/users"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Assign an admin role to a user
Assigns the specified admin role to a user, replacing any previously assigned role. If the user's current role has advanced form access and the new role does not, you must specify how to handle the advanced form data via deleteAdvancedFormData and optionally retainToAdvancedFormUser.
ID of the Admin role
ID of user to promote admin role
Whether to delete advanced form data when changing to role without advanced form access. Required when current role has advanced form access and new role does not.
User ID to retain advanced form data to when deleteAdvancedFormData is false. Required when deleteAdvancedFormData is false.
Returns the newly created admin role assignment.
User unique identifier
Admin role unique identifier. Possible values are: 1: System admin, 2: Application admin
Total number of items available.
Maximum number of items returned per page.
Number of items skipped before the current page.
Forbidden
Possible error codes: ERR_ACCESS_SYSTEM_ADMIN, ERR_LICENSE_DLI, ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X PUT \
"https://{instance}.kiteworks.com/rest/adminRoles/:id/users/:user_id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # ID of the Admin role
user_id = "VALUE" # ID of user to promote admin role
url = f"https://{{instance}}.kiteworks.com/rest/adminRoles/{id}/users/{user_id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.put(url, headers=headers)
print(response.json())Remove an admin role from a user
Removes the specified admin role from a user. The user account itself is not deleted. If the role being removed has advanced form access, you must specify how to handle the advanced form data via deleteAdvancedFormData and optionally retainToAdvancedFormUser.
The unique identifier of the admin role to remove from the user.
The unique identifier (UUID) of the user.
Whether to delete advanced form data when removing role with advanced form access. Required when role has advanced form access.
User ID to retain advanced form data to when deleteAdvancedFormData is false. Required when deleteAdvancedFormData is false.
The admin role was successfully removed from the user. Returns no content.
Forbidden
Possible error codes: ERR_ACCESS_SYSTEM_ADMIN, ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X DELETE \
"https://{instance}.kiteworks.com/rest/adminRoles/:id/users/:user_id" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
id = "VALUE" # The unique identifier of the admin role to remove from the user.
user_id = "VALUE" # The unique identifier (UUID) of the user.
url = f"https://{{instance}}.kiteworks.com/rest/adminRoles/{id}/users/{user_id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.delete(url, headers=headers)
print(response.json())