Get the Microsoft Secure Score control profiles.¶
Shows the current score and improvement actions for the tenant.
Permissions
Requires delegated permission SecurityEvents.Read.All.
Reference¶
from office365.graph_client import GraphClient
from tests.settings import client_id, client_secret, tenant
client = GraphClient(tenant=tenant).with_client_secret(client_id, client_secret)
profiles = client.security.secure_score_control_profiles.get().execute_query()
for profile in profiles:
score = profile.max_score or 0
print(f" {profile.title:50s} max score: {score}")