Hide Sign In as Different user from Share point Site
-
Friday, May 11, 2012 11:03 AM
Hi all,
On top navigation bar there is a dropdown displaying "User Name" as a text. This dropdown has three options, which are:
-
My Settings
-
Request Access
-
Sign in as Different User
-
Sign Out
I would like to remove only one option "Sign in as Different User" from the dropdown for users expcet admin Is this possible? How?
Any help that you could provide would be appreciated.
Thanks,
-
All Replies
-
Friday, May 11, 2012 11:04 AM
hide from all users: http://www.gandhipritesh.com/2011/03/remove-or-hide-sign-in-as-different.html
hide from all except admin: http://social.msdn.microsoft.com/Forums/sk-SK/sharepointcustomization/thread/f96f2fe0-ce65-4e49-8d7d-3c14b6566630
ceren
- Edited by ova c Friday, May 11, 2012 11:05 AM
-
Friday, May 11, 2012 11:30 AM
See
http://social.msdn.microsoft.com/Forums/is/sharepoint2010general/thread/1b1df93b-0a62-4567-a861-e47d10bffa74
and
http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/thread/69fe1532-68e2-4c98-952a-a6d3f48baff6
ceren
- Edited by ova c Friday, May 11, 2012 11:30 AM
-
Sunday, May 13, 2012 10:08 AM
Hi ,
Thanks for reply
i visited the above links and none of them solve the issue . all are talking about the changing in the welcme.ascx file and it applies on farm level .
i have to hide sign In as different user for all users except the site Collection administrator.
is there any approach by code or custom i have to utilize for this task.
Regards,
-
Sunday, May 13, 2012 11:16 AM
Hey,
<style>
.ms-MenuUIULLink[text='Sign in as Different User']
{ display:none;
}</style>
place this in your master page.
By coding you check whether the user is Site Collection Admin and just bind new CSS class in which you will remove that attribute display:none .
Done :)
"The Only Way To Get Smarter Is By Playing A Smarter Opponent"
- Marked As Answer by waheedsweBanned Monday, May 14, 2012 4:19 AM

