removeRole( )


Removes a role from a member.

The removeRole() function returns a Promise that resolves when the specified role is removed from the specified member.

roleId must be an ID from an existing role in your site. The role ID can be copied from the Role Settings page. You can access the Role Settings page from your site's Member Permissions page.

Note: This function may take a few seconds until the role is assigned and the promise is resolved.

Method Declaration
Copy
Method Parameters
roleIdstringRequired

ID of the role to remove from the member.


memberIdstringRequired

ID of the member to remove the role from.


optionsAuthOptions

Authorization options.

Was this helpful?
Yes
No