Tuesday, December 13, 2016

Sign in as another user in SharePoint Personal menu


Sign in as another user in SharePoint Personal menu






Ø  SharePoint Empty Project,
Ø  Right click on project and add an empty element,
Ø  Replace the code with below.




<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
     Id="LoginAsAnotherUserDiferentUSer"
      Title="Sign in as another user?"
      GroupId="PersonalActions"
      Location="Microsoft.SharePoint.StandardMenu"
      Sequence="1000"     
    >
    <UrlAction Url="/_layouts/closeconnection.aspx?loginasanotheruser=true"/>
   
  </CustomAction>
 
</Elements>

===========================  END  ===========================


Link Under Site Actions Menu:


  <CustomAction Id="pageUnderSiteActionsMenu"
  Description="ECBDataRoomAdmin owner"
  Title="Page Cust"
  GroupId="SiteActions"
  Location="Microsoft.SharePoint.StandardMenu"
  Sequence="10">
    <UrlAction Url="~site/_layouts/15/myApp/Cust.aspx"/>
  </CustomAction>











No comments:

Post a Comment