I'm trying to get the groups to which a user belongs, using the post man to make a request to http://mykeycloak/auth/realms/RealmX/protocol/openid-connect/userinfo with the Authorization header. If a do a get request I receve the json with sub, name and preferred_username this is ok. But when doing a post I get the error code 403. I just want to get the email.
POST /auth/realms/RealmX/protocol/openid-connect/userinfo HTTP/1.1 Host: mykeycloak Authorization: Bearer "atoken" claims: {"userinfo":{"email":null}}
What am I doing wrong?Already set up a mapper