Microsoft 365
64 accounts in Microsoft Entra ID P1. 2 admin accounts can sign in with only a password. 20 paid licences not assigned.
Fix these first
From your Microsoft Entra directory. Account names show only while people’s names are on in Settings.
Your directory
Read by the agent on Azure (sample)
- Edition
- Microsoft Entra ID P1
- Accounts
- 64 (58 can sign in)
- Guests
- 9
- Global Administrators
- 3 (2 to 4 is best)
- Security defaults
- Off
- Conditional Access policies
- 2 on
- Old sign-in methods blocked
- No
- Intune
- Licensed
Permissions and the Microsoft 365 commandRun it again, for example to add the Copilot permission
Run the Microsoft 365 command again
Copilot use needs one more read-only permission (Reports.Read.All). Run the same command again as a Global Administrator; permissions already granted are kept, and it’s safe to run more than once.
- A Global Administrator (or Privileged Role Administrator) runs one command, once.
- The CloudLens agent for Azure, version 2.5.0 or later. Older agents: run the Azure setup again with a new setup code; it updates in place.
- Nothing is created in Microsoft Entra: no app registration and no secret. The agent’s own managed identity gets read-only permissions.
- Sign-in activity, the MFA registration report and Conditional Access need Microsoft Entra ID P1 (included in Microsoft 365 Business Premium and E3/E5). Without it, the other checks still work.
User.Read.AllCount users and guests, and find accounts nobody usesRoleManagement.Read.DirectorySee who holds admin rolesUserAuthenticationMethod.Read.AllCheck that admins have a second sign-in methodPolicy.Read.AllRead security defaults and Conditional Access policiesAuditLog.Read.AllLast sign-in dates and the MFA registration report (Entra ID P1)Application.Read.AllFind app secrets and certificates about to expireOrganization.Read.AllCompare licences bought with licences assignedReports.Read.AllSee how many Microsoft 365 Copilot seats are used (counts; names only when you turn them on)
An owner or admin can see the command here.
Results appear within 24 hours (Azure caches the agent’s sign-in), then after every collection. To remove: Microsoft Entra admin center → Enterprise applications → filter Application type: Managed Identities → the CloudLens agent identity (id-cloudlens-…) → Permissions. Removing them stops the Entra checks; everything else keeps working.