Closed Gennady-G closed 4 years ago
Hi @Gennady-G ! Just tested this in online and it gives error:
Sorry, something went wrong An unexpected error has occurred.
But it actually signs you out...
Hmm...
Yes, it finally gives error in Online.. Also tried with/_layouts/**15**/closeConnection.aspx?loginasanotheruser=true
Just googled it. We can avoid error adding Source to url. Maybe something like this would be Ok?
_layouts/closeConnection.aspx?loginasanotheruser=true&source=/_layouts/15/viewlsts.aspx
This does not give error for me..
Best regards, Gennady
Tried this and it logs you out and instantly start new sign-in process:
Can you verify in your online and on-prem envs and I will add it, if work in both?
Thanks
Hi @tavikukko !
Yes, it works for me in both environments. But note that protocol could be http, and it fails if "https" is used in second occurrence:
http://server/_layouts/closeConnection.aspx?loginasanotheruser=true&source=http://server
this is for my on-prem.
Best regards, Gennady
nice!
yeah, all urls will be dynamic related to the current environment, not hardcoding anything.
So, I will have a look on this.
Thanks.
Thank You much Tomi!)
Shipped in the latest version 5.5.7. Thanks @Gennady-G for the idea.
Greetings @tavikukko !
By the way, if You have time - can You please add "Sign out" link to quick links?
Url is:
/_layouts/closeConnection.aspx?loginasanotheruser=true
It is useful when need to change user working with on-prem sharepoint
Not an issue, but enhancement
Best regards, Gennady