> For the complete documentation index, see [llms.txt](https://www.cakewalk.security/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.cakewalk.security/docs/how-to-guides/auto-provisioning/how-it-works.md).

# How It Works

Agent Cake provisions access even for apps that do not support SAML or SCIM. When an approved request reaches its action stage, Agent Cake signs in to the app with a scoped service account and performs the change directly, then records the result.

```mermaid
%%{init: {"theme":"base","flowchart":{"nodeSpacing":60,"rankSpacing":60,"curve":"linear"},"themeVariables":{"primaryColor":"#F9F9FB","primaryTextColor":"#1E1E1E","primaryBorderColor":"#6B7280","lineColor":"#6B7280","clusterBkg":"#FFFFFF","clusterBorder":"#E0E0E0","edgeLabelBackground":"#FFFFFF","tertiaryColor":"#FFFFFF"}}}%%
flowchart TD
    T["An approved request reaches its action stage<br/>grant access, change permissions or remove access<br/>(often from onboarding or offboarding)"]
    T --> M{"Provisioning method<br/>for this app<br/>(one active at a time)"}
    M -->|IdP| IDP["Your Identity Provider<br/>completes the provisioning task"]
    M -->|Agent Cake| AUTH

    subgraph AC["Agent Cake"]
        AUTH["Signs in to the app with the scoped<br/>service account, handling MFA and<br/>email verification"] --> DO["Performs the action in the app<br/>provision: create the account and assign permissions<br/>deprovision: suspend or remove the account<br/>permission change: adjust the role"]
    end

    IDP --> DONE["Access updated, task completed"]
    DO --> DONE
    DONE -.-> AUD["Recorded in the audit log"]

    classDef completed fill:#F9F9FB,stroke:#54A17C,color:#1E1E1E
    class DONE completed
```

{% content-ref url="/pages/bvu31tMXneTyjiGJXFcd" %}
[Activate Agent Cake](/docs/how-to-guides/auto-provisioning/how-it-works/activate-agent-cake.md)
{% endcontent-ref %}

{% content-ref url="/pages/Drm95SOte6Yy7nRmZsxV" %}
[Configuration Settings](/docs/how-to-guides/auto-provisioning/how-it-works/configuration-settings.md)
{% endcontent-ref %}

{% content-ref url="/pages/A3bZdJzQ5Jg50Gtx5Fi8" %}
[Control Provisioned Permissions](/docs/how-to-guides/auto-provisioning/how-it-works/control-provisioned-permissions.md)
{% endcontent-ref %}

{% content-ref url="/pages/szBvQ7Fazr5wFToPu3uj" %}
[Set up Service Accounts](/docs/how-to-guides/auto-provisioning/how-it-works/set-up-service-accounts.md)
{% endcontent-ref %}

{% content-ref url="/pages/HvkphS2qnD2ap1UwfDOp" %}
[Multi-Factor Authentication](/docs/how-to-guides/auto-provisioning/how-it-works/multi-factor-authentication.md)
{% endcontent-ref %}

{% content-ref url="/pages/113khWZe1sF6Jd50WIRG" %}
[Email Verification](/docs/how-to-guides/auto-provisioning/how-it-works/email-verification.md)
{% endcontent-ref %}

{% content-ref url="/pages/72VIEuPcG2ooS1LnT77f" %}
[Security & Data Protection](/docs/how-to-guides/auto-provisioning/how-it-works/security-and-data-protection.md)
{% endcontent-ref %}

{% content-ref url="/pages/50E59TMkl6ox8oLH0lOo" %}
[IdP-Based Auto-Provisioning](/docs/how-to-guides/auto-provisioning/how-it-works/idp-based-auto-provisioning.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://www.cakewalk.security/docs/how-to-guides/auto-provisioning/how-it-works.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
