If you want to use a console application to access the Graph API, there are two ways to authenticate, but neither of them will meet your needs, so let me explain in detail below:
1.Delegated (user) authentication: This authentication method uses delegated permissions, but requires the user to log in interactively for authorization.
2.App-only authentication: This authentication mode uses the application permission and does not require the user to log in. However, the application permission can only be granted by the administrator.
For detailed authentication methods and code for console applications, see this documentation.
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.