An API that connects multiple Microsoft services, enabling data access and automation across platforms
Hi @Shajedul Alam
You don't need to add a redirect URL, because the client credentials flow does not involve user interaction. You also don't need to register your app as "supports accounts from any organization" unless you want to share your app with other organizations.
If you are using the client credentials flow, then make sure you are calling the /users/{id | userPrincipalName} endpoint instead of the /me endpoint, otherwise it will throw a 401 "Unauthorized" error. Also, don't forget to grant the corresponding application permissions for the calling app.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.