Skip to content

Bug report: scp or role claim need to be present error when using app-only authN (using cert) #1738

@svarukala

Description

@svarukala

Description

I am using O365 CLI with Certificate authN. Even though I assigned proper 'application' permissions (Sites.FullControl), it still fails to execute commands like 'spo site list'.

Steps to reproduce

Once you have an app-only/cert based authN setup for your O365 CLI. Add Sites.FullControl.All application permission.
image

Then try to run below command:
spo site list

Expected result

See list of sites.

Actual result

Error: 403 AccessDenied Either scp or roles claim need to be present in the token.
image

Environment

OS: Windows 10 v1909
PS: ver 5.1.18362.752
O365 CLI: 2.12.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions