I tried this new syntax but still not working.
public async Task<Result<dynamic>> addUserToAzureGroup(Group AzGroup, User AzUser) { // link the found user with the found group try { AzGroup.Members.Add(AzUser as DirectoryObject); await AzGroup.UpdateAsync(); } catch (Exception ex) { Exception myEx = new Exception(ex.Message); retResult.Exception = myEx; return retResult; } return retResult; }
I have almost the same error text in the progress message: Context is already tracking relationships
Any news on this? Can anyone guess why this is happening?
I also tried manage.windowsAzure.com from the user interface and still cannot add the user! I get this error: Failed to add members to the group 'myAzAD_group' .
source share