Skip to content

Commit

Permalink
AD users might not have email addresses (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngg authored Jun 27, 2022
1 parent 03cb645 commit be5cd7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ public SecurityComponents createSecurityComponents() {
List<AzureAdGroup> groups = AzureCachePool.get(azureClient)
.getBelongingGroupsByOid(user.getObjectID());

user.setAuthorities(groups, user.getEmail());
user.setAuthorities(groups, user.getUniqueName());
return user;
} catch (GraphServiceException e) {
if (e.getResponseCode() == NOT_FOUND) {
Expand Down

0 comments on commit be5cd7c

Please sign in to comment.