Hi everyone,
Im trying to list all the users with the /api/v2/users/ users but my access token comes with this structure:
{
“http://my-api.api/roles”: [
“admin”,
“user”
],
“http://my-api.api/email”: “my-email”,
“iss”: “{auth-audience}”,
“sub”: “user-id”,
“aud”: [
“https://my-api.api”,
“{auth-audience}/userinfo”
],
“iat”: 1625848706,
“exp”: 1625935106,
“azp”: “Vk0cNhddmDAulI7mRdyVMe8oZ2YsvxKp”,
“scope”: “openid profile email admin user”,
“permissions”: [
“read:messages”,
“read:user_idp_tokens”,
“read:users”
]
}
But to use the /api/v2/users I need the audience without the “/userinfo”. How I can take off the rute “/userinfo” from the audience string