Hi @Nikita Gawande
If the user/admin has previously logged in and accepted the permissions in the scope, the consent form will not pop up the next time the user/admin logs in.
If you want the OAuth consent dialog to have to be triggered every time the user logs in, then you can add prompt=consent
to the request URL.
https://login.microsoftonline.com/{tenant id}/oauth2/v2.0/authorize?
client_id={client id}
&response_type=code
&redirect_uri={redirect url}
&response_mode=query
&scope=User.Read
&prompt=consent
&state=12345
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.