Skip to content

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 ​

ParameterTypeDescription
clientClient-
parameters{ group?: string[]; id: number; projectIdOrKey: string; user?: string[]; }-
parameters.group?string[]The groups to add to the role.
parameters.id?numberThe project role id
parameters.projectIdOrKey?stringThe 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; }>