azure-spring-boot/src/main/java/com/microsoft/azure/spring/autoconfigure/aad/AzureADGraphClient.java
private boolean isValidUserGroupToGrantAuthority(final UserGroup group) {
        return aadAuthenticationProperties.getUserGroup().getAllowedGroups().contains(group.getDisplayName())
                || aadAuthenticationProperties.getActiveDirectoryGroups().contains(group.getDisplayName());
    }
private boolean isValidUserGroupToGrantAuthority(final UserGroup group) {
        return aadAuthenticationProperties.getUserGroup().getAllowedGroups().contains(group.getDisplayName())
                || aadAuthenticationProperties.getActiveDirectoryGroups().contains(group.getDisplayName());
    }
private boolean isValidUserGroupToGrantAuthority ( final UserGroup group ) { return aadAuthenticationProperties . getUserGroup ( ) . getAllowedGroups ( ) . contains ( group . getDisplayName ( ) ) || aadAuthenticationProperties . getActiveDirectoryGroups ( ) . contains ( group . getDisplayName ( ) ) ; }
Determines if this is a valid {@link UserGroup} to build to a GrantedAuthority.
<p>
If the {@link UserGroupProperties#getAllowedGroups()} or the {@link
AADAuthenticationProperties#getActiveDirectoryGroups()} contains the {@link UserGroup#getDisplayName()} return
true.

@param group - User Group to check if valid to grant an authority to.

@return true if either of the allowed-groups or active-directory-groups contains the UserGroup display name
Determines if this is a valid { @link UserGroup } to build to a GrantedAuthority . <p > If the { @link UserGroupProperties#getAllowedGroups () } or the { @link AADAuthenticationProperties#getActiveDirectoryGroups () } contains the { @link UserGroup#getDisplayName () } return true .