A cloud-based identity and access management service for securing user authentication and resource access
Hi @Radha Rajendran , from this thread:
You are using the client credential flow here, which means that you cannot dynamically request scopes. You must configure your required permission scopes on your app registration in apps.dev.microsoft.com, then you set the value of scope in your code to
https://graph.microsoft.com/.default.See https://developer.microsoft.com/en-us/graph/docs/concepts/auth_v2_service for more details.
I believe this is the answer to your problem. If so, please mark this answer as "Verified" so other users may reference it. If not, please let me know and I can look into this further!
Best,
James