Get access without a user - Microsoft Graph
Some apps call Microsoft Graph with their own identity and not on behalf of a user. In many cases, these are background services or daemons that run on a server without the presence of a signed-in user. An example of such an app might be an email archival service that wakes up and runs overnight.
https://docs.microsoft.com/en-us/graph/auth-v2-service