I got clientid, clientsecret after done the azure app registration.
I can get the access token by specifying the below details
{
"grant_type" : "Client Credentials",
"ClientID" : "xxxx",
"ClientSecret" :"xxxx",
"Access token url" : "login.microsoftonline.com/.../token",
"scope" : "xxxxxx.crm8.dynamics.com/.default"
}
But, when i consume the crm api using this token, im getting 401: UnAuthorized error.
When I decode the access token, i get below details

I have created the application user in dynamics, assigned security role and map with the clientid. But I didnt find the user/role details in the decrypted access token.
Anything I did wrong or need to do something else ?