Share via

Secure Score Graph Api

Anonymous
2022-06-09T07:44:39+00:00

When I am calling Microsoft Graph API "https://graph.microsoft.com/v1.0/security/secureScores?$top=10" getting an error message

{"error":{"code":"UnknownError","message":"Auth token does not contain valid permissions or user does not have valid roles.","innerError":{"date":"2022-06-09T07:28:23","request-id":"2d8e4f26-91db-4341-8a63-961421d99bb8","client-request-id":"2d8e4f26-91db-4341-8a63-961421d99bb8"}}}.

I have verified accessToken it contains scope for secure score api, "scp": "AccessReview.ReadWrite.All AuditLog.Read.All Directory.AccessAsUser.All Directory.ReadWrite.All email Group.ReadWrite.All openid Organization.Read.All profile Reports.Read.All SecurityEvents.Read.All SecurityEvents.ReadWrite.All User.Read User.ReadWrite.All". I am using Microsoft PartnerCenter user having role Global Administrator to authenticate all customer tenant. the above error message only coming for few customers. Can anyone suggest me what needs to be done.

Microsoft 365 and Office | Install, redeem, activate | Other | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-06-09T08:18:40+00:00

    Hello Pradeep,
    I am Jaspreet Singh an independent advisor.
    Please post your query in the programming oriented forum here :
    https://docs.microsoft.com/en-us/answers/index....
    Techcommunity forums are more suitable for this kind of questions.
    Microsoft community forums are mainly for consumer products troubleshooting and help.

    Was this answer helpful?

    0 comments No comments