Function: addActorUsers()
ts
function addActorUsers(
client,
parameters,
options?
): Promise<{
[key: string]: unknown;
actors?: object[];
description?: string;
id?: number;
name?: string;
self?: string;
}>;Defined in: src/server/api/projects.ts:506
Adds an actor (user or group) to a project role. For user actors, their usernames should be used.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { group?: string[]; id: number; projectIdOrKey: string; user?: string[]; } | - |
parameters.group? | string[] | The groups to add to the role. |
parameters.id? | number | The project role id |
parameters.projectIdOrKey? | string | The project id or project key |
parameters.user? | string[] | The usernames to add to the role. |
options? | RequestOptions | - |
Returns
Promise<{ [key: string]: unknown; actors?: object[]; description?: string; id?: number; name?: string; self?: string; }>