org-user-management (1.0)
Download OpenAPI specification:Download
Administers organizations and users.
Updates your user details across all organizations.
Updates your user details across all organizations. The request is only valid for a user authenticating with a username-password connection to log into Model-Prime. Users authenticating with third-party connections such as google-oauth2 will need to update their details through the provider.
Request Body schema: application/jsonrequired
The updated user data. Any omitted fields will be left unchanged.
string | |
name | string |
Responses
Request samples
- Payload
{- "email": "string",
- "name": "string"
}
Response samples
- 200
{- "email": "string",
- "id": "string",
- "name": "string"
}
Lists users in your organization.
query Parameters
page_number | integer >= 1 Default: 1 The desired page number, starting from 1. For instance, if page_size=100, then page_number=2 will contain items 101-200. |
page_size | integer [ 0 .. 100 ] Default: 100 The number of items to return per page. The maximum value is 100. If the value is greater than 100, then 100 will be used. |
name_search | string >= 3 characters ^[a-zA-Z ]{3,}$ A case-insensitive search string for filtering users by name. |
Responses
Response samples
- 200
{- "count": 0,
- "items": [
- {
- "email": "string",
- "id": "string",
- "name": "string"
}
]
}
Requests an Auth0 password reset for the specified user.
Requests an Auth0 password reset for the specified user and sends a reset email to the user. The request is only valid for a user authenticating with a username-password connection to log into Model-Prime. Users authenticating with third-party connections such as google-oauth2 will need to reset credentials through the provider.
path Parameters
id | string The unique id of the resource |
Responses
Creates a new role set for the specified user, replacing their existing roles.
path Parameters
id | string The unique id of the resource |
Request Body schema: application/jsonrequired
Responses
Request samples
- Payload
[- "admin"
]
Invites a user to your organization
Invites a user to your organization via an email with actions to complete registration. The user will be created with the specified roles after they complete the registration process.
Request Body schema: application/jsonrequired
Specifies the email of the user and the list of roles to be assigned.
connection required | string or null (ConnectionType) Default: "google-oauth2" Value: "google-oauth2" The type of connection used to log into the Model-Prime platform such as google-oauth2. If no connection is provided, the user will be required to create an account with a username and password. |
email required | string |
name required | string |
roles required | Array of strings (PermissionRole) Items Enum: "admin" "developer" "analyst" |
Responses
Request samples
- Payload
{- "connection": "google-oauth2",
- "email": "string",
- "name": "string",
- "roles": [
- "admin"
]
}