Skip to content

Commit

Permalink
Fix group icon not displaying when validating groups (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Jun 15, 2021
1 parent cb4560c commit 34c2c5a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ public SecurityComponents createSecurityComponents() {
});

if (azureAdUser == null) {
throw new UserMayOrMayNotExistException2("Cannot find user: " + username);
throw new UsernameNotFoundException("Cannot find user: " + username);
}

return azureAdUser;
Expand All @@ -510,6 +510,10 @@ public SecurityComponents createSecurityComponents() {
*/
@Override
public GroupDetails loadGroupByGroupname2(String groupName, boolean fetchMembers) {
if (isDisableGraphIntegration()) {
throw new UserMayOrMayNotExistException2("Can't lookup a group if graph integration is disabled");
}

GraphServiceClient<Request> azureClient = getAzureClient();

String groupId = ObjId2FullSidMap.extractObjectId(groupName);
Expand Down

0 comments on commit 34c2c5a

Please sign in to comment.