A cloud-based identity and access management service for securing user authentication and resource access
Hello Kumara Raghuramaiah-JHG
Can you please share the details on how you are generating the token and also can you decode the token in jwt.ms and share the screenshot?
Based on this Microsoft Document, For app-only calls, the redemption status can't be reset if there are any roles assigned to the target user account.
- Hence, grant User.ReadWrite.All along with User.Invite.All API permission to the Microsoft Entra ID application and regenerate the access token and call the API
- And the call fails if if there are any roles assigned to the target user account.
Let me know if any further queries - feel free to reach out!
If the resolution was helpful, kindly take a moment to click on
and click on Yes for was this answer helpful. And, if you have any further query do let us know.