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

%3CLINGO-SUB%20id%3D%22lingo-sub-2366482%22%20slang%3D%22en-US%22%3ESharePoint%20link%20pauses%20%2F_layouts%2FcloseConnection.aspx%20%3Floginasanotheruser%3Dfalse%26amp%3B%20Source%3D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2366482%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWithin%20our%20company%2C%20we%20have%20multiple%20SharePoint%20sites%20over%20different%20Office%20365%20environments.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20we%20are%20trying%20to%20do%20is%20when%20a%20user%20clicks%20on%20a%20SharePoint%20link%20the%20user%20is%20first%20logged%20out%20of%20any%20other%20SharePoint%20sites%20on%20the%20different%20environment%20and%20then%20the%20credentials%20are%20asked%20for%20the%20new%20SharePoint%20environment.%20This%20works%20perfectly%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3EWhen%20you%20add%20%3CA%20href%3D%22https%3A%2F%2Fb3living.sharepoint.com%2Fsites%2FCeMeslaTest%2F_layouts%2FcloseConnection.aspx%3Floginasanotheruser%3Dfalse%26amp%3BSource%3Dhttps%3A%2F%2Fb3Living.sharepoint.com%2Fsites%2FCeMeslaTest%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%2F_layouts%2FcloseConnection.aspx%3Floginasanotheruser%3Dfalse%26amp%3BSource%3Dhttps%3A%2F%2Fcompany.sharepoint.com%2Fsites%2FSiteName%2F%3C%2FA%3E%20to%20the%20end%20of%20the%20SharePoint%20URL%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLI%3E%3CLI%3EAdded%20properties%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fb3living.sharepoint.com%2Fsites%2FCeMeslaTest%2F_layouts%2FcloseConnection.aspx%3Floginasanotheruser%3Dfalse%26amp%3BSource%3Dhttps%3A%2F%2Fb3Living.sharepoint.com%2Fsites%2FCeMeslaTest%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%2F_layouts%2FcloseConnection.aspx%3CBR%20%2F%3E%3Floginasanotheruser%3Dfalse%3CBR%20%2F%3E%26amp%3BSource%3Dhttps%3A%2F%2Fcompany.sharepoint.com%2Fsites%2FSiteName%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLI%3E%3CLI%3EFull%20URL%20looks%20like%20this%3A%20%3CA%20href%3D%22https%3A%2F%2Fcompany.sharepoint.com%2Fsites%2FSiteName%2F_layouts%2FcloseConnection.aspx%3Floginasanotheruser%3Dfalse%26amp%3BSource%3Dhttps%3A%2F%2Fcompany.sharepoint.com%2Fsites%2FSiteName%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fcompany.sharepoint.com%2Fsites%2FSiteName%3CSTRONG%3E%2F_layouts%2FcloseConnection.aspx%3Floginasanotheruser%3Dfalse%26amp%3BSource%3D%3C%2FSTRONG%3Ehttps%3A%2F%2Fcompany.sharepoint.com%2Fsites%2FSiteName%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLI%3E%3CLI%3EWhen%20a%20user%20is%20logged%20into%20another%20SharePoint%20or%20Office%20365%20environment%2C%20the%20user%20is%20automatically%20logged%20out%20of%20that%20environment%20and%20automatically%20asked%20for%20the%20credentials%20to%20log%20into%20the%20new%20SharePoint%20site.%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20problem%20arises%20when%20the%20user%20is%20not%20logged%20into%20any%20other%20SharePoint%20or%20office%20365%20environment.%20When%20the%20user%20clicks%20the%20link%20above%20it%20says%20%E2%80%9CYou%E2%80%99ve%20signed%20out%20of%20your%20account%E2%80%9D%20but%20doesn%E2%80%99t%20request%20the%20credentials%20for%20the%20new%20SharePoint%20environment.%20It%20just%20pauses%20at%20%E2%80%9CYou%E2%80%99ve%20signed%20out%20of%20your%20account%E2%80%9D.%20I%20have%20tried%20changing%20the%20properties%20from%20%3CSTRONG%3E%3Floginasanotheruser%3Dfalse%3C%2FSTRONG%3E%20and%20%3CSTRONG%3E%3Floginasanotheruser%3Dtrue%3C%2FSTRONG%3E%20but%20it%20still%20pauses.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22CEStar321_0-1621378670950.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281681i2338144B63A37579%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22CEStar321_0-1621378670950.png%22%20alt%3D%22CEStar321_0-1621378670950.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20anyway%20I%20can%20get%20the%20procedure%20to%20not%20pause%3F%20Are%20there%20other%20properties%20I%20can%20add%20to%20the%20SharePoint%20link%20that%20doesn%E2%80%99t%20make%20it%20pause%3F%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EAdded%20properties%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fb3living.sharepoint.com%2Fsites%2FCeMeslaTest%2F_layouts%2FcloseConnection.aspx%3Floginasanotheruser%3Dfalse%26amp%3BSource%3Dhttps%3A%2F%2Fb3Living.sharepoint.com%2Fsites%2FCeMeslaTest%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%2F_layouts%2FcloseConnection.aspx%3CBR%20%2F%3E%3Floginasanotheruser%3Dfalse%3CBR%20%2F%3E%26amp%3BSource%3Dhttps%3A%2F%2Fcompany.sharepoint.com%2Fsites%2FSiteName%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20you%20can%20help%3CBR%20%2F%3EColin%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2366482%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eauthorization%20rules%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EURL%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

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:

 

 

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.

CEStar321_0-1621378670950.png

 

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

0 Replies