If you want to grant consent on behalf of a specific user, then using Microsoft Graph PowerShell is undoubtedly one of the most standard methods.
Of course, you can also meet this requirement by restricting your app to specific users, but this method is more restrictive, which means that users in your tenant who are not assigned to an app will no longer be able to sign in to the app.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.