The CloudRadial AutomationAI Microsoft 365 Security Posture extension lets a workflow or agent review the security of a Microsoft 365 tenant through Microsoft Graph: Microsoft Secure Score and the improvement actions behind it, Conditional Access policies, multi-factor authentication (MFA) and authentication-method registration, risky users, and Microsoft Defender XDR alerts. Every tool only reads data, so the extension never changes anything in the tenant. This article covers what the extension can do, the app registration permissions and secrets it needs, and the skill that ships with it. It is for workspace users who build automations (Admin or Owner Role).
- What the Extension Covers
- Setting Up the App Registration
- Providing the Credentials to Your Runner
- Read-Only Tools
- Skills
- Tips for Reviewing Microsoft 365 Security
What the Extension Covers
The extension is a read-only companion to the Microsoft 365 extension. It calls Microsoft Graph with an app-only token, so it runs unattended with no signed-in user, and provides six tools:
| Area | What you can automate |
| Secure Score | Read the latest Microsoft Secure Score snapshot, with the current and maximum score, the score for each control, and comparative averages, or a longer daily history to show a trend |
| Improvement actions | List the Secure Score improvement actions, with each one's title, maximum points, rank, implementation cost, user impact, tier, remediation steps, and Microsoft action URL |
| Conditional Access | List Conditional Access policies with their state, conditions, and grant controls |
| MFA registration | List each user's authentication-method registration: whether they are MFA capable, MFA registered, or passwordless, whether they are an admin, and which methods they use |
| Risky users | List Microsoft Entra ID Identity Protection risky users with their risk level and state |
| Security alerts | List Microsoft Defender XDR alerts across Microsoft 365 workloads, filtered by status or severity |
In the catalog, the extension is listed as Microsoft 365 Security Posture. Install it from Extensions like any other catalog extension. See Browsing and installing extensions for the general install flow. To make changes in Microsoft 365, such as resetting a password or disabling an account, use the Microsoft 365 extension; see Using the Microsoft 365 extension.
Setting Up the App Registration
The extension signs in with the same Microsoft Entra ID app registration as the Microsoft 365 extension. If you have not created one yet, follow Creating a Microsoft 365 app registration for the Microsoft 365 extension.
When you add Microsoft Graph application permissions to the app registration, add these, and then grant admin consent:
| Graph application permission | Used for |
SecurityEvents.Read.All |
Secure Score and improvement actions |
Policy.Read.All |
Conditional Access policies |
AuditLog.Read.All |
Authentication-method registration details |
IdentityRiskyUser.Read.All |
Risky users. This also needs a Microsoft Entra ID P2 license in the tenant. |
SecurityAlert.Read.All |
Defender XDR alerts |
Grant admin consent in each client tenant you review. Each permission covers its own tools, so a missing permission or license affects only those tools; the others still work.
Providing the Credentials to Your Runner
The extension reads the same three secrets as the Microsoft 365 extension. If those are already in your runner's Key Vault, there is nothing new to add. Otherwise, store them with these exact names:
| Secret | Value |
M365-ClientID |
The Application (client) ID GUID of your Entra app registration |
M365-TenantID |
Your Entra tenant ID GUID, or a verified domain |
M365-ClientSecret |
The client secret value created under the app registration's Certificates & secrets |
The runner reads these secrets itself and the agent never asks you for them, so never paste them into a prompt or a tool input. For how to add secrets, see Accessing and updating your runner's Key Vault. A run scoped to a company uses that company's own copies of these secrets when they exist, so each client tenant can have its own credentials; see Managing companies and per-company credentials.
Read-Only Tools
All six tools are read-only and run without interruption. None of them is approval-gated, so a run that uses only this extension never pauses for an Action Required item in the Inbox.
| Tool behavior | Tools |
| Read-only | Get Secure Score; list improvement actions; list Conditional Access policies; list authentication-method registration; list risky users; list security alerts |
Because the tools cannot change anything, the agent recommends changes rather than making them. To act on a recommendation, use the Microsoft 365 extension or make the change in the Microsoft admin center.
Skills
The extension ships one skill that uses all six tools:
| Skill | Use it to |
| Review Microsoft 365 Security Posture | Review a client tenant's Microsoft 365 security. The agent gets the latest Secure Score and its percentage, ranks the improvement actions by points missing with low user impact and low implementation cost first, checks whether Conditional Access requires MFA for all users and admins, blocks legacy authentication, or leaves policies in report-only mode, counts users who are not MFA capable, admins without MFA, and users on SMS or voice only, and lists medium- and high-risk users and open high-severity alerts. Each recommendation names the control or setting, the evidence, the points or risk it addresses, the user impact, and the Microsoft action URL when one exists. Read-only. |
To give an agent this skill, see Creating custom agents and using them in workflows.
Tips for Reviewing Microsoft 365 Security
- Secure Score returns only the latest daily snapshot unless you ask for more. Ask for a longer history, such as the last 30 days, only when you want a trend.
- The Secure Score percentage is the current score divided by the maximum score
- For a large tenant, ask for a filter, such as open alerts of high severity or users at high risk, to keep results focused
- A 403 error on one tool means the app registration is missing that tool's permission, or the tenant is missing the license it needs, such as Entra ID P2 for risky users. The agent reports it rather than guessing a value.
- A 401 or 403 error on every call is a setup problem: check the three secrets and that admin consent was granted
- If you installed a custom copy of this extension before the catalog version was available, remove the custom copy so the agent doesn't see each tool twice. See Managing installed extensions.
- Once the secrets are in place, ask the AI Playground for the tenant's current Secure Score to confirm the connection works
If you are still having trouble, we’re here to help! Submit a ticket here for assistance, and don’t forget to check our status page to ensure there are no outages in your area.
Comments
0 comments
Please sign in to leave a comment.