Hi guys,
I've just tested this component and it was not syncing roles at all, I manage to identify the issue on the code, please analyze it and give me some feedback.
1. In the execution of action OAuth2_SyncRoles, there's no session user session yet, and getuserid() is being used instead of the input parameter UserId:
2. If condition is incorrect on action SyncAzureRoles should be Site.DoSyncRoles and UserId <> NullIdentifier()