iamops.dev Search
Argo on X RSS feed
ENEnglish

Knowledge Explainer · 5 min Beginners

Anyone who has clicked "Allow" on a sign-in screen and wondered what that really gave away.

Scopes vs consent: what an app asks for, and what you actually agreed to

Scopes name what an app wants to do, consent is the yes you give. A plain-language basics explainer for AI agents and ordinary apps, with a consent flow.

Sequence diagram: an app asks for read and send scopes, the user sees a consent screen and approves only read, and the app gets a narrower token.
TL;DRA scope is a label for one permission, such as reading mail.

When an app asks to connect to your work account, you see a screen with a list of things it wants to do. Those items come from two separate ideas, and mixing them up is the most common mistake in this area.

What a scope is#

A scope is a label that names one permission. “Read calendar” and “send mail” are two scopes. The app asks for them when it starts a sign-in. The rules for how this request works come from the OAuth standard, which describes scope as a space-separated list sent with the request.

A scope is a request, not a grant. Asking for “send mail” does not mean the app can send mail. It means the app is asking.

Consent is the decision. Someone says yes to the request, either the user for their own data or an administrator who approves access for the whole company. The decision can cover all the scopes asked for, some of them, or none.

The sequence below shows the usual path. The app asks, the person sees the list, and the approval shapes the token that comes back.

Sequence diagram: an app requests read and send scopes, the user approves only read, and the authorization server returns a token that has only the read scope.
Asked for two, approved for one. The token carries only what was approved.

The token is what the app uses later. If the person approved only read access, the token should not allow sending. Good systems check that on every call, not just at sign-in.

Why this matters for AI agents#

An agent often asks for a broad list of scopes so that it can do many tasks later. A person clicks through because the screen is long and the task sounds small. That is how an agent that was asked to read a calendar ends up able to send messages.

The safer pattern is narrow scopes, asked in the moment they are needed, with clear wording on the screen. The OAuth 2.0 flows explainer shows which sign-in route asks for consent in which way. For agents that pass requests to other agents, the token exchange explainer shows how a narrower token can be issued for the second hop.

What to check when you approve#

If you are the person clicking, look at the list and ask whether each item is needed today. If you are the administrator, check whether the app has asked for a permission that lets it act for everyone, not just for the user who signed in. Those are the ones to question.

If you are a product owner, do the same check on your own app. Ask for the smallest scope set that works, and make the screen state what each scope lets the app do.

Scopes describe what an app wants. Consent decides what it gets. Read both before you say yes.

Sources#

Discuss this on X or LinkedIn

Follow on X

New posts by email

One email a week with new posts and labs. Unsubscribe anytime.

Your address is stored with Kit, which sends the emails. Details

Related research and labs

Type to search every page. Use the arrow keys to move through the results.

    Open the full search page