# Members

In business-to-business (B2B) use cases, members are the users of your business customers and partners (managed as organizations of the tenant).


## Servers

Sandbox environment
```
https://api.sbx.transmitsecurity.io/cis
```

US production environment
```
https://api.transmitsecurity.io/cis
```

EU production environment
```
https://api.eu.transmitsecurity.io/cis
```

CA production environment
```
https://api.ca.transmitsecurity.io/cis
```

AU production environment
```
https://api.au.transmitsecurity.io/cis
```

JP production environment
```
https://api.gasne1-ts01.transmitsecurity.io/cis
```

## Security

### bearer

Type: http
Scheme: bearer
Bearer Format: JWT

### UserAccessToken

A token returned upon end-user authentication, which provides access to resources and data for the user and app for which it was generated

Type: http
Scheme: bearer
Bearer Format: JWT

### AdminAccessToken

[object Object]

Type: oauth2
Token URL: /oidc/token
Scopes:

### ClientAccessToken

[object Object]

Type: oauth2
Token URL: /oidc/token
Scopes:

### OrgAdminAccessToken

A token returned upon B2B authentication for a user that has the organizationAdmin or organizationCreator role.

Type: oauth2
Token URL: /oidc/token
Scopes:

## Download OpenAPI description

 - [Members](https://developer.transmitsecurity.com/_bundle/openapi/user/members.openapi.yaml)

 - [POST /v1/applications/{app_id}/organizations/{organization_id}/members/{member_id}/roles](https://developer.transmitsecurity.com/openapi/user/members.openapi/other/setroles.md): Update the roles of a member of the organization to control their access to an application. This will replace all the member's roles, if they exist. The roles must first be created for the application
 - [PUT /v1/applications/{app_id}/organizations/{organization_id}/members/{user_id}/status](https://developer.transmitsecurity.com/openapi/user/members.openapi/other/updatememberstatusmanagement.md): Update the status of the specified member. This should be called from the backend, using an admin access token (generated by a management app). <br><br>**Required permissions**: `organizations:edit`,
 - [GET /v1/members/{member_id}/organizations](https://developer.transmitsecurity.com/openapi/user/members.openapi/other/getmemberorgsbyid.md): Get member's roles in app per organization
 - [GET /v1/organizations/{organization_id}/members/{user_id}](https://developer.transmitsecurity.com/openapi/user/members.openapi/other/getmemberbyidinapp.md): Allows an end-user app to search for a member of an organization by their user ID. This should be called from the backend, using a client access token (generated by an end-user app). <br><br>**Require
 - [PUT /v1/organizations/{organization_id}/members/{user_id}](https://developer.transmitsecurity.com/openapi/user/members.openapi/other/updatemember.md): Update the membership details of the specified user. <br><br>**Required permissions**: `apps:edit`, `[appId]:edit`, `users:edit`.
 - [PATCH /v1/organizations/{organization_id}/members/{user_id}](https://developer.transmitsecurity.com/openapi/user/members.openapi/other/updateorganizationmember.md): Update the member details of the specified user. <br><br>**Required permissions**: `apps:edit`, `[appId]:edit`, `users:edit`.
 - [DELETE /v1/organizations/{organization_id}/members/{user_id}](https://developer.transmitsecurity.com/openapi/user/members.openapi/other/removememberfromapplication.md): Remove a member from an application. Once removed, the member will no longer be associated with the application. <br><br>**Required permissions**: `apps:edit`, `[appId]:edit`, `users:edit`.
 - [POST /v1/organizations/{organization_id}/members](https://developer.transmitsecurity.com/openapi/user/members.openapi/other/createorassignmember.md): Create a new user in Transmit or assign an existing one as a member to the organization. A user must be created with at least one of the following: email, phone number, or username (used for password
 - [GET /v1/organizations/{organization_id}/members](https://developer.transmitsecurity.com/openapi/user/members.openapi/other/getallapplicationmembers.md): Allows an app to get all members of an organization. This should be called from the backend, using a client access token (generated by an end-user app). <br><br>**Required permissions**: `apps:read`,
 - [DELETE /v1/organizations/{organization_id}/members/{user_id}/emails/{email}](https://developer.transmitsecurity.com/openapi/user/members.openapi/other/removemembersecondaryemail.md): Removes a secondary email address from the member's profile. <br><br>**Required permissions**: `apps:edit`, `[appId]:edit`, `users:edit`.
 - [DELETE /v1/organizations/{organization_id}/members/{user_id}/phone-numbers/{phone_number}](https://developer.transmitsecurity.com/openapi/user/members.openapi/other/removemembersecondaryphonenumber.md): Removes a secondary phone number from the member's profile. <br><br>**Required permissions**: `apps:edit`, `[appId]:edit`, `users:edit`.
