Fix too much account on MS365 access review
Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -148,6 +148,12 @@ func (d *Microsoft365Driver) ListAccounts(ctx context.Context) ([]AccountRecord,
|
||||
email = u.UserPrincipalName
|
||||
}
|
||||
|
||||
// Skip accounts without any usable identifier so the access
|
||||
// review only lists real members, matching the SCIM bridge.
|
||||
if email == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
userRoles := rolesByUser[u.ID]
|
||||
isAdmin := false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user