projectmanager-sdk
Version:
Software development kit for the ProjectManager.com API. for TypeScript
34 lines • 1.11 kB
JavaScript
/**
* ProjectManager API for TypeScript
*
* (c) ProjectManager.com, Inc.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author ProjectManager.com <support@projectmanager.com>
* @copyright ProjectManager.com, Inc.
* @link https://github.com/projectmgr/projectmanager-sdk-typescript
*/
export class UserRoleClient {
client;
/**
* Internal constructor for this client library
*/
constructor(client) {
this.client = client;
}
/**
* Retrieves the list of UserRoles defined within this Workspace.
*
* A UserRole is a name for a privilege level granted to a specific User. The 'Global Admin'
* UserRole is granted to the owner of the Workspace, and this UserRole cannot be changed.
* You can choose which UserRole applies to a User within your Workspace.
*
*/
retrieveUserRoles() {
const url = `/api/data/users/roles`;
return this.client.request("get", url, null, null);
}
}
//# sourceMappingURL=UserRoleClient.js.map