Skip to content

817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) · agentskills.io standard · Works with Claude Code, GitHub Copilot, Codex CLI, Cursor, Gemini CLI & 20+ platforms · 29 security domains · Apache 2.0

2.1 KB
Raw Blame

API Reference: Building Identity Governance Lifecycle Process

Microsoft Graph API - Identity Governance

import requests

token = "Bearer <access_token>"
headers = {"Authorization": token}

# List all users with sign-in activity
resp = requests.get(
    "https://graph.microsoft.com/v1.0/users",
    headers=headers,
    params={"$select": "id,displayName,userPrincipalName,accountEnabled,"
            "signInActivity,employeeId,department,jobTitle"}
)

# List access reviews
resp = requests.get(
    "https://graph.microsoft.com/v1.0/identityGovernance/"
    "accessReviews/definitions",
    headers=headers,
)

# Check MFA registration status
resp = requests.get(
    "https://graph.microsoft.com/v1.0/reports/"
    "authenticationMethods/userRegistrationDetails",
    headers=headers,
)

# List entitlement management access packages
resp = requests.get(
    "https://graph.microsoft.com/v1.0/identityGovernance/"
    "entitlementManagement/accessPackages",
    headers=headers,
)

Key Graph API Endpoints

Endpoint Purpose
/users List/manage user identities
/identityGovernance/accessReviews Access review campaigns
/identityGovernance/entitlementManagement Access packages and catalogs
/identityGovernance/lifecycleWorkflows JML automation workflows
/reports/authenticationMethods MFA registration status
/auditLogs/signIns Sign-in activity logs

SailPoint IdentityNow API

# Search identities
resp = requests.get(
    "https://<tenant>.api.identitynow.com/v3/search/identities",
    headers={"Authorization": "Bearer <token>"},
    json={"query": {"query": "department:Engineering"}}
)

# List access profiles
resp = requests.get(
    "https://<tenant>.api.identitynow.com/v3/access-profiles",
    headers={"Authorization": "Bearer <token>"},
)

References