I use .NET SS Api to create and mofify users and workspaces.
I am trying to utilize the following method to add a workspace to an existing user:
public async Task can_assign()
{
await susoClientAdminWS.AssignAsync(new AssignWorkspacesToUserRequest
{
UserIds = new Guid[] { Guid.Parse(aid) },
Mode = AssignWorkspacesMode.Add,
Workspaces = new[] { awsjm }
});
}
susoClientAdminWS … IWorkSpaces
aid … string, the user’s Id
awsjm … string, the name of the workspace