TL;DR
- A scope is a label for one permission, such as reading mail.
- Consent is the yes a person or admin gives to a scope list.
- What matters in practice is the token the app ends up with.
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.
What consent is#
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.
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#
This post as Markdown · RSS · JSON feed
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