Share via

Embed files needs to sign in every time

Wang, Qianqian CN/SHG EXT 0 Reputation points
2026-03-05T09:28:09.26+00:00

We have an external application which can embed Microsoft files. But when some users embeded excel files from Onedrive to this application, it shows sign in O365 every time. Any good idea on this?

Microsoft 365 and Office | Development | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Gabriel-N 14,775 Reputation points Microsoft External Staff Moderator
    2026-03-05T10:36:56.78+00:00

    Hello Wang, Qianqian CN/SHG EXT

    Thank you for reaching out to the Q&A Forum and for providing the detailed information.

    Regarding the behavior you mentioned, may I ask whether this issue happens with all files, or only with specific files? If it occurs only on certain files, could you please review the permissions or the permission inheritance on those files? Sometimes custom permissions or broken inheritance may cause inconsistent access behavior.

    Based on my research, some suggestions indicate that this behavior may stem from browser cookie policies or conditional access policies. When you have time, could you help me check those two areas as well?

    Additionally, I’d like to confirm whether the sign‑in prompt appears only on one browser, or if it persists across different browsers for the same account. For example, if the affected user signs in using another browser, does the issue still occur?

    You may also find this article helpful: “How to handle third‑party cookie blocking in browsers” It explains how blocked cookies can affect authentication inside embedded content.

    I hope this information is helpful. Please note that initial responses may not always contain the right solution, but we will continue working together until we find the right answer.

    Looking forward to your reply.


    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.

    1 person found this answer helpful.

  2. Wang, Qianqian CN/SHG EXT 0 Reputation points
    2026-03-05T10:29:57.3066667+00:00

    These files cannot be shared to everyone, only to specific people.

    And some users do not neeed to sign in evey time, but some needs. I think it is not the file setting.

    0 comments No comments

  3. Q&A Assist
    2026-03-05T09:28:22.42+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The repeated sign-in prompt when viewing embedded Excel files usually occurs because the embedded content requires authentication and the browser cannot reuse or send the necessary cookies or session to Microsoft 365.

    For public, no‑sign‑in viewing of embedded workbooks, configure the source file’s sharing and embed settings so that anonymous access is allowed:

    1. In SharePoint Online or OneDrive for Business, locate the workbook.
    2. Open the More menu (...) next to the workbook and select Share.
    3. Share the workbook with Everyone (or Everyone except external users if Everyone is blocked by admin) and set permission to Can view.
    4. Ensure the Require sign-in box is unchecked so that anonymous users can open the workbook without authenticating.
      • If the Require sign-in box is removed or forced to True by policy, anonymous access is blocked and users will always be asked to sign in; in this case, an admin must change the policy if sign‑in‑free embedding is required.
    5. Use the embed HTML generated from OneDrive/SharePoint (for example, via </> Embed or File > Share > Embed) in the external application.

    If the workbook is not shared for anonymous access, or if the tenant admin blocks anonymous links, users will be prompted to sign in each time the embedded frame loads, especially in private/incognito modes or when third‑party cookies are blocked.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.