I ( with a super admin role ) have created a service app as per Implement OAuth for Okta with a service app | Okta Developer , have given okta.userRisk.read scope to the app, have assigned super admin role to the app. I have then generated an access token ( given okta.userRisk.read scope ) and tried to access the user risk api ( User Risk ). I am getting this error
{
“errorCode”: “E0000005”,
“errorSummary”: “Invalid session”,
“errorLink”: “E0000005”,
“errorId”: “oaeoZLaLv9zSb2O5QFDqIIwVw”,
“errorCauses”:
}
My okta account has Identity Threat Protection enabled and this same user risk api works if accessed via API Token. This issue is seen only using a scoped access token.
Can you please let me know what is missing because I have given all required permissions and still getting this error.