updateUserMembership

Function

Updates users membership to admin or member, acts as a wrapper for updateUserMemberships from arcgis-rest-portal

  • updateUserMembership(id: string, users: string[], newMemberType: "member" | "admin", authentication: UserSession) : Promise<IUpdateGroupUsersResult>

Parameters

Parameter Type Default Notes
id Required string

Group id that the members belong to

users Required string[]

Array of usernames to update membership level on

newMemberType Required "member" | "admin"

The type of user to update the users to

authentication Required UserSession

authentication

Returns

{Promise}

Promise<IUpdateGroupUsersResult>
Property Type Notes

Function defined in teams/src/update-user-membership.ts:17