MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

SharePoint access token lifetime change #112897

Closed SamueleFurnari closed 1 year ago

SamueleFurnari commented 1 year ago

I'm confused about the token lifetime configuration: in the documentation I read that I can change the access token lifetime but this does not affect the SharePoint and One Drive and that for this I must use the Conditional Access policies.

I registered an app in my MS Entra instance, and applied a policy to it to extend the access token's duration to 24 hours. The policy works well if I ask a token with a custom scope (scope specific for my app) but it does not works if I ask a token for a SharePoint resource (that has always 1h expiration time)

My question is: I use the token to interact with sharepoint API on behalf of user but I cant find a way (alternative to the refresh token usage), to maintain live the SharePoint token (I can't find any conditional access policy taht satify my requirement).

Can you clarify to me how can I extend the SharePoint access token lifetime?

Thanks Samuele


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ManoharLakkoju-MSFT commented 1 year ago

@SamueleFurnari Thanks for your feedback! We will investigate and update as appropriate.

YashikaTyagii commented 1 year ago

@SamueleFurnari Thank you for your feedback!

Since this issue isn't directly related to improving our docs, and to gain a better understanding of your issue, I'd recommend working closer with our support team via an Azure support request. Or you can leverage our Q&A forum by posting your issue there so our community, and MVPs can further assist you in troubleshooting this issue or finding potential workarounds.

Teams Q&A forum for technical questions about the configuration and administration of Microsoft Teams on Windows. Microsoft Teams Community forum Thank you for your time and patience throughout this issue.

SamueleFurnari commented 1 year ago

@YashikaTyagii Thank you for the reply. I proceed with the SR.

Thank you again Samuele