autoAddUsers

Function

Attempts to auto-add users to a group

  • autoAddUsers(id: string, users: IUser[], authentication: IAuthenticationManager) : Promise<IAddGroupUsersResult | null>

Parameters

Parameter Type Default Notes
id Required string

ID of the group the users will be added to

users Required IUser[]
authentication Required IAuthenticationManager

Returns

Result of the transaction (null if no users are passed in)

Promise<IAddGroupUsersResult | null>

Function defined in common/src/groups/autoAddUsers.ts:19