SharePoint link pauses /_layouts/closeConnection.aspx?loginasanotheruser=false&Source=

CourtneyEdwards-321 46 Reputation points
2021-05-18T23:45:16.377+00:00

Hi, Within our company, we have multiple SharePoint sites over different Office 365 environments. What we are trying to do is when a user clicks on a SharePoint link the user is first logged out of any other SharePoint sites on the different environment and then the credentials are asked for the new SharePoint environment. This works perfectly: 1) When you add /_layouts/closeConnection.aspx?loginasanotheruser=false&Source=https://company.sharepoint.com/sites/... to the end of the SharePoint URL 2) Added properties /_layouts/closeConnection.aspx ?loginasanotheruser=false &Source=https://company.sharepoint.com/sites/... 3) The full URL looks like this: https://company.sharepoint.com/sites/SiteName/_layouts/closeConnection.aspx?loginasanotheruser=false&Source=https://company.sharepoint.com/sites/SiteName/ 4) When a user is logged into another SharePoint or Office 365 environment, the user is automatically logged out of that environment and automatically asked for the credentials to log into the new SharePoint site (source URL https://company.sharepoint.com/sites/SiteName/) The problem arises when the user is not logged into any other SharePoint or office 365 environment. When the user clicks the link above it says “You’ve signed out of your account” but doesn’t request the credentials for the new SharePoint environment. It just pauses at “You’ve signed out of your account”. I have tried changing the properties from ?loginasanotheruser=false and ?loginasanotheruser=true but it still pauses. ![97644-777capture.png][1] Is there any way I can get the procedure to not pause, but redirect the user to the source SP site https://company.sharepoint.com/sites/SiteName/ ? Are there other properties I can add to the SharePoint link that doesn’t make it pause? Added properties /_layouts/closeConnection.aspx ?loginasanotheruser=false &Source=https://company.sharepoint.com/sites/... I hope you can help Colin [1]: /api/attachments/97644-777capture.png?platform=QnA

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,728 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,685 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,576 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,816 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Elsie Lu_MSFT 9,771 Reputation points
    2021-05-19T06:40:54.453+00:00

    Hi @CSunny789 ,

    SharePoint is not a public site, and login to the site requires user authentication.

    If you log out of the site, then you could try to close your browser and log in again, which usually requires you to re-authenticate. Trying to clear the cache and log in again is also a good choice.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    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.