I'm trying to remove a user from a role using the API. I can successfuly add one but cannot remove one. I dont get any errors. It just doesnt remove the name. I verify this by looking in the workspace and refreshing. Here is my code:
ConnectToWorkspace(); //connect to the server
_role = urmServer.GetRole(rolename);
//_role.Include.Add(
new UserItem(K2Username)); //this example works fine.
_role.Include.Remove(new UserItem(K2Username)); //this part does nothing
urmServer.UpdateRole(_role);
urmServer.Connection.Close();
urmServer.Connection.Dispose();