I want to develop a timer job (C#), which will run at background without any logged in user, through which i need to fetch user profile (profile image and job title) from Azure AD using a graph api. I want to achieve this using delegated permissions (User.ReadBasic.All) as i'm not allowed to use application level permissions for User.Read.All. So is there any way i can achieve this.
Yes, but the user will have to sign in to your app at least once to initiate the process.
The way you can do this:
This process will work in the background for as long as the refresh tokens work. But they can and do expire. You will need to be prepared for this as to make it work again for that user, they will have to repeat step 1 again.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.