list access profiles and see response. also check you calling proper tenants, better you contact network admin if list access profiles fails
As Tyler Rettkowski called, it looks like you are using an API Client (from Admin > Security Settings > API Management > API Client), not a Personal Access Token.
Both give you a client_id and client_secret, and both use client_credentials as the grant type, so they look identical in your script. But an API Client token has no user context behind it. The JWT it produces carries a null identity_id. A PAT is tied to your actual user account, so the JWT carries your identity. That’s what ISC needs here.
To fix it, follow these steps to create a PAT:
- Click your avatar (top right) > Preferences
- Select Personal Access Tokens on the left, then click New Token
- Enter a description, enable
sp:scopes:allor your required scopes, and click Create
Swap the new Client ID and Secret into your script. The 403 on the GET identity call you saw will go away too, same root cause.
