403 and names the scope it needs.
The scopes
Scopes that expose personal data
Give these only to a system that needs what they expose, and that you would trust with it.phishing_analytics:view_employee_data
This scope lets a service account read employees’ names and email addresses, next to how each did in a simulation. It opens two things:
- Phishing campaigns. Both campaign routes need it as well as
phishing_campaigns:view, because reading a campaign returns its participants by name. - Analytics by person. On
/v1/phishing/analytics, grouping byemployee_nameoremail, or filtering byuserIds, needs it as well asphishing_analytics:view.
403.
phishing_analytics:view
On its own this scope returns no employee’s name. It does return manager names, manager email addresses and job titles when you group by them.
phishing:admin
The AutoPhish routes need this scope because AutoPhish reports name the people simulations were sent to. In Cimento the same permission lets an admin change AutoPhish. A service account cannot: with this scope it can only read.
How scopes reach an access token
- You can give only scopes you hold. When you create or edit a service account, a scope you don’t hold yourself is greyed out.
- A client secret holds the scopes its service account had when the secret was made. An access token gets its scopes from the client secret, not straight from the service account.
- Removing a scope takes effect on the next access token. A token already issued keeps the scope until it expires, up to an hour later.
- Adding a scope needs a new client secret. Until you rotate, Cimento marks the scope Needs rotation and no token carries it. See Adding a scope.
- A token can carry fewer scopes than the secret holds. See Ask for fewer scopes.