Struct zoom_api::roles::Roles

source ·
pub struct Roles {
    pub client: Client,
}

Fields

client: Client

Implementations

List roles.

This function performs a GET to the /roles endpoint.

List roles on your account

Scopes: role:read:admin

Rate Limit Label: Medium
Prerequisites :

  • Pro or higher plan.
  • For setting the initial role, you must be the Account Owner.
  • For subsequent role management, you must be the Account Owner or user with role management permissions.

Create a role.

This function performs a POST to the /roles endpoint.

Each Zoom user automatically has a role which can either be owner, administrator, or a member.

Pre-requisite:

  • Pro or higher plan.
  • For setting the initial role, you must be the Account Owner.
  • For subsequent role management, you must be the Account Owner or user with role management permissions.
    Scopes: role:write:admin

Rate Limit Label: Light

List members in a role.

This function performs a GET to the /roles/{roleId}/members endpoint.

User roles can have a set of permissions that allows access only to the pages a user needs to view or edit. Use this API to list all the members that are assigned a specific role.

Scope: role:read:admin

Rate Limit Label: Medium
Prerequisites:

  • A Pro or a higher plan.

Parameters:

  • role_id: &str – User’s first name.

  • page_count: &str – The number of pages returned for this request.

  • page_number: i64Deprecated - This field has been deprecated and we will stop supporting it completely in a future release. Please use “next_page_token” for pagination instead of this field.

    The page number of the current page in the returned records.

  • next_page_token: &str – The next page token is used to paginate through large result sets. A next page token will be returned whenever the set of available results exceeds the current page size. The expiration period for this token is 15 minutes.

  • page_size: i64 – The number of records returned within a single API call.

List members in a role.

This function performs a GET to the /roles/{roleId}/members endpoint.

As opposed to members, this function returns all the pages of the request at once.

User roles can have a set of permissions that allows access only to the pages a user needs to view or edit. Use this API to list all the members that are assigned a specific role.

Scope: role:read:admin

Rate Limit Label: Medium
Prerequisites:

  • A Pro or a higher plan.

Assign a role.

This function performs a POST to the /roles/{roleId}/members endpoint.

User roles can have a set of permissions that allows access only to the pages a user needs to view or edit. Use this API to assign a role to members.

Scopes: role:write:admin

Rate Limit Label: Medium
Prerequisites:

  • A Pro or a higher plan.

Parameters:

  • role_id: &str – User’s first name.

Unassign a role.

This function performs a DELETE to the /roles/{roleId}/members/{memberId} endpoint.

User roles can have a set of permissions that allows access only to the pages a user needs to view or edit. Use this API to unassign a user’s role.

Scope: role:write:admin

Rate Limit Label: Light
Prerequisites:

  • A Pro or a higher plan.

Parameters:

  • role_id: &str – User’s first name.
  • member_id: &str – User’s first name.

Get role information.

This function performs a GET to the /roles/{roleId} endpoint.

Each Zoom user automatically has a role which can either be owner, administrator, or a member. Account Owners and users with edit privileges for Role management can add customized roles with a list of privileges.

Use this API to get information including specific privileges assigned to a role.
Pre-requisite:

  • A Pro or higher plan.
  • For role management and updates, you must be the Account Owner or user with role management permissions.

Scopes: role:read:admin

Rate Limit Label: Light

Parameters:

  • role_id: &str – User’s first name.

Delete a role.

This function performs a DELETE to the /roles/{roleId} endpoint.

Each Zoom user automatically has a role which can either be owner, administrator, or a member. Account Owners and users with edit privileges for Role management can add customized roles with a list.

Use this API to delete a role.
Pre-requisite:

  • A Pro or higher plan.
  • For role management and updates, you must be the Account Owner or user with role management permissions.

Scopes: role:write:admin

Rate Limit Label: Light

Parameters:

  • role_id: &str – User’s first name.

Update role information.

This function performs a PATCH to the /roles/{roleId} endpoint.

Each Zoom user automatically has a role which can either be owner, administrator, or a member. Account Owners and users with edit privileges for Role management can add customized roles with a list.

Use this API to change the privileges, name and description of a specific role.
Pre-requisite:

  • A Pro or higher plan.
  • For role management and updates, you must be the Account Owner or user with role management permissions.
    Scopes: role:write:admin

Rate Limit Label: Light

Parameters:

  • role_id: &str – User’s first name.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more