SpaceService.AddMember Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

AddMember(int, int, Access, bool)

Add (or update) a member to the specified Space.

public static Member AddMember(int id, int userId, Access access = Access.Write, bool sudo = false)

Parameters

id
int

Id of the Space.

userId
int

Id of user to add.

access
Access

The access rights to set for the user.

sudo
bool

true to perform action as super user, otherwise false.

Returns

Member

The space Member.