Skip to content

Latest commit

 

History

History
214 lines (133 loc) · 6 KB

UserManagementApi.md

File metadata and controls

214 lines (133 loc) · 6 KB

UserManagementApi

All URIs are relative to https://sandbox-iam.us.hypto.com/v1

Method HTTP request Description
changePassword POST /organizations/{organization_id}/users/{user_name}/change_password Change password for a user
createUser POST /organizations/{organization_id}/users Create a user
deleteUser DELETE /organizations/{organization_id}/users/{user_name} Delete a User
getUser GET /organizations/{organization_id}/users/{user_name} Gets a user entity associated with the organization
listUsers GET /organizations/{organization_id}/users List users
resetPassword POST /organizations/{organization_id}/users/resetPassword Reset Password
updateUser PATCH /organizations/{organization_id}/users/{user_name} Update a User

changePassword

BaseSuccessResponse changePassword(user_name, organization_id, ChangeUserPasswordRequest)

Change password for a user

Change password for a user

Parameters

Name Type Description Notes
user_name String [default to null]
organization_id String [default to null]
ChangeUserPasswordRequest ChangeUserPasswordRequest Payload to change user password

Return type

BaseSuccessResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

createUser

User createUser(organization_id, CreateUserRequest)

Create a user

User is an entity which represent a person who is part of the organization or account. This user entity can be created either through user name, password or the user can be federated through an identity provider like Google, Facebook or any SAML 2.0, OIDC identity provider. This is a sign-up api to create a new user in an organization.

Parameters

Name Type Description Notes
organization_id String [default to null]
CreateUserRequest CreateUserRequest Payload to create user

Return type

User

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

deleteUser

BaseSuccessResponse deleteUser(user_name, organization_id)

Delete a User

Delete a User

Parameters

Name Type Description Notes
user_name String [default to null]
organization_id String [default to null]

Return type

BaseSuccessResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getUser

User getUser(user_name, organization_id)

Gets a user entity associated with the organization

Get a User

Parameters

Name Type Description Notes
user_name String [default to null]
organization_id String [default to null]

Return type

User

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

listUsers

UserPaginatedResponse listUsers(organization_id, nextToken, pageSize)

List users

List users associated with the organization. This is a pagniated api which returns the list of users with a next page token.

Parameters

Name Type Description Notes
organization_id String [default to null]
nextToken String [optional] [default to null]
pageSize String [optional] [default to null]

Return type

UserPaginatedResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

resetPassword

BaseSuccessResponse resetPassword(organization_id, ResetPasswordRequest)

Reset Password

Reset Password

Parameters

Name Type Description Notes
organization_id String [default to null]
ResetPasswordRequest ResetPasswordRequest Payload to reset password

Return type

BaseSuccessResponse

Authorization

apiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

updateUser

User updateUser(user_name, organization_id, UpdateUserRequest)

Update a User

Update a User

Parameters

Name Type Description Notes
user_name String [default to null]
organization_id String [default to null]
UpdateUserRequest UpdateUserRequest Payload to update user

Return type

User

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json