NavigationTerm.GetWebRelativeFriendlyUrl() is slow for Site Collection Administrators or users with Edit Permission

I have a publishing site on SharePoint 2013. Part of the site requires a custom navigation to replace the quick launch. I've written a UserControl that accesses the NavigationTermSet and uses the term titles and URLs to build a navigation.
Loading the NavigationTermSet:
using (SPSite site = new SPSite(SPContext.Current.Site.ID, SPUserToken.SystemAccount))
using (SPWeb web = site.OpenWeb(SPContext.Current.Web.ID))
TaxonomySession taxonomySession = new TaxonomySession(site);
StandardNavigationSettings navigationSettings = new WebNavigationSettings(web).CurrentNavigation;
TermStore termStore = taxonomySession.TermStores[navigationSettings.TermStoreId];
TermSet termSet = termStore.GetTermSet(navigationSettings.TermSetId);
_navTermSet = NavigationTermSet.GetAsResolvedByWeb(termSet, web, StandardNavigationProviderNames.CurrentNavigationTaxonomyProvider);
I grab the term's friendly URL with the following:
navTerm.GetWebRelativeFriendlyUrl();
Pages containing this control load in less than a second for read-only users. Site Collection Administrators or Content Editors take about 8 seconds to load the same page. I've determined that the method in the code block above is the culprit for the long
load times for admins and content editors. What is the deal with that? Can I do something differently to speed things up for admins?
Any help is appreciated.

For anyone who ran into the same issue as me, the fix was to change how the term set was loaded:
_navTermSet = TaxonomyNavigation.GetTermSetForWeb(SPContext.Current.Web, StandardNavigationProviderNames.CurrentNavigationTaxonomyProvider, false);
This loads the term set from the navigation cache. The other method I was using would load without making use of the cache, which is why it was slow. I'm guessing the cache was still being used for non-admin users as the loading was not slow for them.

Similar Messages

  • Remove access for site collection administrators from sub sites

    Hi,
    We have site collection with sub sites for departments. Here few departments is having confidential data and they don't want to give access to the site collection administrators also.
    Is this possible to remove site collection administration rights for sub sites? If Yes,please tell me how can i achieve this.
    Regards,
    Saya

    Dear Nadeem,
    Thanks for your information. I have one query on permissions.
    I have created new site collection and has given site collection administrator permissions to the user "ABC" and there is no permissions for Farm administrator also. Except this user there is no other users are having any permissions to this site
    collection. Even though I am able to log in with my Farm administrator (it is displaying as "System Account").
    Any help would be greatly appreciated to resolve this as there is some confidential documents which should not be accessible to any user.
    Regards,
    Saya

  • How can i add a special user to the "site collection administrators" of the personal site on sharepoint online when the personal site is creating ?

    when a new personal site is created on the sharepoint online 2013, then the administrator of this personal site will be himself. we can add another person to the "site collection administrators", then this person have full control of this personal
    site.
    but my request is : add this personal to the personal site when the personal site is creating, but not after the personal site has created ?
    Is anybody know how to do that?

    Hi,
    According to your post, my understanding is that you want to add a special user to the "site collection administrators" of the personal site on sharepoint online when the personal site is creating.
    Per my knowledge,
    there is no out of the box way to accomplish this with SharePoint.
    This is a forum which is supported for SharePoint On-Premise.
    Regarding SharePoint Online, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
    Office 365 forum
    http://community.office365.com/en-us/forums/default.aspx
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Alerts are not working for Site collections in a content database

    Hi,
    We have been into a strange issue that alerts are not working for site collections from a particular content database. When user subscribed for the alerts, they are getting mail about their subscription but not after that for any new items/documents added
    or changes happen in the list/document library.
    We have tried with Immediate as well as scheduled alerts both are not working.
    FYI, Alerts for all other site collections from different content database for the same web application are working without any issues.
    Any help would be appreciated.
    Thanks
    Ramkumar

    Looks like an Timer job Issue for your web application. Can you please check if these jobs are enabled and check error log for the alerts Timer jobs .Check whether the "Immediate Alerts" job is enabled for your web application.
    job-immediate-alerts
    job-daily-alerts
    job-weekly-alerts
    Please check this wiki -
    Troubleshooting Steps for SharePoint Alert Email Does Not Go Out
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Must every site collection's SiteCollectionImages library have unique permission?

    Recently I am testing search across different Sharepoint farms. I just found that every site collection's SiteCollectionImages library have unique permission. I have tested by create a blank new site collection and it has same behaviour.
    1) Is it by purpose?
    2) Will I break anything if I change permission here or "remove the unique" permission?
    3) In my test, by default "Style Resource Readers" have read permission on this library. "Style Resource Readers" always contain user "NT AUTHORITY\authenticated users". It caused anyone can see the thumbnails. I think it is not
    safe and would like to remove "NT AUTHORITY\authenticated users" from group or remove "Style Resource Readers" from the SiteCollectionImages library. Should I process?

    Hi,
    1.Is it by purpose?
    Yes, it is by designer
    2.Will I break anything if I change permission here or "remove the unique" permission?
    There are several consequences when Style Resource Readers group’s permissions changed, users may start reporting that they have 'Access Denied' errors trying to edit or create pages.
    3.I think it is not safe and would like to remove "NT AUTHORITY\authenticated users" from group or remove "Style Resource Readers" from the SiteCollectionImages library. Should I process?
    Members of this group are given read permission to the master page gallery and the Restricted read permission to the Style Library.
    I seriously recommend: Don't change anything to do with this group!
    There are several ramifications when this group's permissions change, users may start reporting that they have 'Access Denied' errors trying to edit or create pages. Or if you have a structure where you want users to only be able to access a sub site
    and you don't give any permissions to the Root site, then they will get 'Access Denied' everywhere.
    Here is an blog about leaving the Style Resource Readers group alone, take a look at:
    http://brmorris.blogspot.com/2012/04/access-denied-editing-or-creating-pages.html
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • Apply Information Rights Management to document library with edit permission to site admin or Member Group in O365

    Apply Information Rights Management to document library with edit permission to site admin or Member Group in O365.
    so that one or few limited users can update or edit documents in IRM applied document library

    Hi,
    Based on your description, my understanding is that you want to apply Information Rights Management to a document library.
    Here is a link about how to set up Information Rights Management (IRM) in SharePoint admin center, you can use as a reference:
    http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/set-up-information-rights-management-irm-in-sharepoint-admin-center-HA102895193.aspx
    Here is a link about how to apply Information Rights Management to a library, you can use as a reference:
    http://office.microsoft.com/en-us/sharepoint-help/apply-information-rights-management-to-a-list-or-library-HA102891460.aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Get SPO Tenant Site Collection Administrators list using CSOM.

    Hi All,
    I'm trying to get the list of all SCA's for a site collection created in SPO tenant.
    using following code, i could able to view few properties of Site Collection but not the SCA's for that site collection.
    spp = tenant.GetSiteProperties(startIndex, true);
    Any other possibility to get the list of SCA's for a Site Collection created on SPO Tenant.
    Thanks,
    P

    Your can easily adjust the time out limit of the underlying HttpRequest by setting the property ClientRuntimeContext.RequestTimeout (Details: http://msdn.microsoft.com/EN-US/library/office/ee541007(v=office.15).aspx).
    I use this method for multiple Sharepoint Online apps and it works well. But be warned, sometimes I get no repsond for requests and so the ExecuteQuery() blocks until the time out occurs. This happend for me regualry while sending simple GetListByTitle()
    requests. So set a sane value (e.g. several minutes for long running requests like feature activations) and handle a time out in catch blocks.

  • Publishing Feature for Site Collection

    Hi..
    I am having 5 different Site Collections in SharePoint Site and from 1st Site Collection we are redirecting to other using Top Link bar, but when we enable Publishing Feature for Different Site Collections the Top Link bar changed..i want to have Standard links
    for all
    Ravindranath

    Publishing feature is applicable to a Site Collection and its sites.
    Quick Approach
    A quick solution will be to manage the Navigation (via Site Actions -> Site Settings -> Look and Feel -> Navigation -> Navigation Editing and Sorting -> Global Navigation) for all 5 site collections and add same links. This will show the same
    top links for all your site collections.
    Correct approach - 
    For using same navigation (top links) across site collections withing same web application, you need to implement Global Navigation. Google this and you'll find lots of good articles to implement this - Create an xml for site map, copy this to your web application
    directory, add the provider in web.config, update the master page to bind the provider to SiteMapDataSource.
    This is a proper approach where if you update the xml, changes get applied to all site collections.

  • How to List view web part to display document library for only users with access permission

    Hi
    I am trying to accomplish this requirement but I don't know if that is possible or how to get there.  Any suggestion or advice are helpful.
    On a site collection, I have several document libraries,  with each library have unique permission to a few user or SharePoint group.
    I want to create a web part page and make that the site home page.  On this web part page, I want to create a Content Search Web Part to list the content of the document library that the logged on users have permission to see. 
    Is this possible with CSWP or is there anything easier or if it is not possible at all,  please advise.
    Thanks
    Swanl

    Hi ,
    Based on your description, my understanding is that you want to create a Content Search Web Part to list the documents that the logged on users have access permission.
    It is feasible with CSWP, you can follow the below step:
    Edit Content Search Web Part->Change query-> Select a query: Items matching a content type (System); Restrict by app: Current site collection; Restrict by content type: Document.
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet
    Subscriber Support, contact [email protected]

  • MPR for helpdesk to create / delete users with authZ

    Hi everybody,
    I'm facing a strange situation with two MPRs. I'm setting up 6 policies for the IT helpdesk to manage users with and without authZ workflows in place, and so far I managed the grant really granular rights depending on the target and modified attributes.
    Today I wanted to create my last 2 simple policies for the create resource and delete resource operations, having:
    - Policy disabled unchecked
    - IT Helpdesk as requestor
    - Grants permission unchecked
    - Create / delete resource checked
    - All Active People for create / All Non-Administrators for delete as target resources, All attributes selected.
    - The 2 authZ workflows checked; they are the same as for 2 other policies
    When a helpdesk user is creating/deleting a user trough the portal it gets an Access Denied error on submit, when I search the request as admin I see the create/ delete policies are the only ones applied. When I check the Grants permission the user is created/deleted
    without authZ, but this is not what I want.
    Does anyone has an clue why the workflows are not triggered in these 2 cases, and why are they fired in the other two?
    Thanks for helping me out.
    Cristian

    Even though this post is old I think it worthwhile to answer for others. Hopefully, Christian has already found his solution.
    A key to troubleshooting these issues is to go to "Search Requests" and look at the request and see what MPR's were applied. Then look to see if the workflows started requests.
    Request Processing
    http://msdn.microsoft.com/en-us/library/windows/desktop/ee652475(v=vs.100).aspx
    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

  • 2013 SP Site Collection and Farm Admin permissions and cannot access site

    I am Farm Admin and Site Collection admin on my 2013 SP server and CAN access Central Admin, but CANNOT open the site without being promted for user name and password.  When I enter the user name and password they are not accepted. 
    This is on my production server.  I have NO PROBLEMs with the staging server.  The 2 are set up exactly the same.
    Any suggestions? 

    Discussion
    Farm Administrators are not automatically able to access site collections.  They can however add themselves to the site collection administrators group.  Additional detail:
    Permissions for site collection administrators - scroll down to the
    SharePoint farm administrators section (midway down) and look for the
    Note.
    Resolution
    Add your farm administrators account to the site collection administrators group. You can do this two ways:
    Go: Central administration > Application Management > Site Collections > Change site collection administrators
    Go: [your site collection] > Site Settings > Users and Permissions > Site collection administrators.

  • How many Site Collections we can have in each farm in SharePoint?

    Hi,
    Can anyone please help me out with this that how many Site Collections we can have in each farm in SharePoint?
    I cannot able to find the related answers as of now.

    Hi,
    Go through the links below
    Software boundaries and limits for SharePoint 2013
    SharePoint Terminology – Farms, Web Front Ends, Web Application and Sites
    Permissions for site collection administrators
    Plan sites and site collections in SharePoint 2013
    Indul Hassan
    http://www.indulhassan.com
    You Snooze.. You Lose !!
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Script to bulk assign 'My Site collection' secondary administrators

    Hi
    Staff in my company have already logged in and created their own My Sites and when they did this it set themselves as the primary administrator but left the secondary administrator blank. I want to add spadmin to the secondary administrator role.
    I know you can set the secondary My Site administrators using
    Set -SPSite -identity https://my.company.org.uk/personal/jamesv -secondaryowneralias DOMAIN\spadmin
    Could someone please help me put this into a loop which would cycle through all of the personal sites in that web application and then set spadmin as secondary administrator for all.
    Id like to learn more about Powershell but not really sure where to look, what courses to do.. if anyone knows of any please also let me know.
    Many Thanks
    James

    Change site collection administrators for all site collections 
    Get-SPWebApplication "http://intranet.crescent.com" | Get-SPSite -Limit All | ForEach-Object { Set-SPSite $_ -OwnerAlias "<domain\user>" -SecondaryOwnerAlias "<domain\user>" }
    Read more: http://www.sharepointdiary.com/2013/01/change-site-collection-primary-secondary-administrators.html#ixzz3AyBN7Taj
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Access denied for all (most?) users in all site collections of web app

    Hi,
    I have a Sharepoint 2010 farm pre-SP1 (yes should be updated!) and for all site collections of a web app, all users are getting access denied.
    Now in my title I said "most?" because I have found one user in another office who does not have this issue. This web app/site collections also do not go through f5 or any proxies.
    Even if I add myself as a site collection admin via central admin, I get the same result. I've looked at everything, windows time on the server (not using kerberos), errors in event log (nothing), uls logs just say access denied (very helpful!), etc...
    I can try what's suggested at http://social.technet.microsoft.com/Forums/en-US/e66f1b09-605d-4546-a581-2a9283c238c0/access-denied-for-all-users-and-for-site-collections-owner?forum=sharepointgeneralprevious but when asking colleagues, there's been no
    changes, let alone with those accounts? I can do a get on the property tomorrow to find if there is a value set first, however.
    Any suggestions on this?

    Hi,
    Please try logging in the site with farm account.
    If it works, please make sure you have superuser and superreader accounts in CA > Application management > web application policy. If not, please add both accounts with the powershell script in the article below, this can cause all users denied when
    access the site:
    http://technet.microsoft.com/en-us/library/ff758656.aspx
    Here is a similar thread:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/a49b1ab8-273f-41e4-a0b8-be0e31c6733b/all-users-including-site-collection-admins-receiving-access-denied-from-one-site-collection?forum=sharepointadminprevious
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Managed path for host named site collection is farm level or web application level?

    Hi,
    I would like to get advice.
    I created a webapplication for host named site collections.
    these are my host named site collections (except http://sp2013) under my webapplication
    Root Site Collection: http://sp2013
    Site Collection: portal1.sg
    Site Collection: portal1.sg/research
    Site Collection: portal1.sg/intranet
    research and intranet managed paths are farm level
    all my host named site collection will be accessed by http and https except "intranet" site collection will be only accessed by https
    so I changed the Intranet zone for site collection using Set-SPSiteUrl
    Set-SPSiteUrl (Get-SPSite "http://portal1.sg") -Url "https://portal1.sg" -Zone Intranet
    Set-SPSiteUrl (Get-SPSite "http://portal1.sg/research") -Url "https://portal1.sg" -Zone Intranet
    Set-SPSiteUrl (Get-SPSite "http://portal1.sg/intranet") -Url "https://portal1.sg/intranet" -Zone Intranet
    Now I need to create "search" site collection for "Enterprice Search Center"
    My question is that for the "search" managed path ... should i use farm level or web application level?
    "search" site collection will be will be accessed with both http and https also.
    Thanks a lot!

    managed path for HNSC is farm level and u can have 20 managed path
    while managed path for path based is 20 per web application in your case if you are going to have a a separate web application for search then u will use web app
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

Maybe you are looking for

  • How do I make my HP Deskjet 6980 printer Web Enabled?

    I cannot figure out how to make my printer web enabled so that I can use ePrint.

  • Authoring to DVD w playback monitor capable of HD, Sequence settings?

    Hello Macaroonies, As the subject line reads, I'm working on a project w a final output for playback on DVD hooked up to a HDTV ready 16:9 monitor. I'm working in the sequence setting preset NTSC 3:2 (720x480) and plan on converting the finished edit

  • Restore achive logs from tape

    Hi I need to restore archive logs from the tape. I am pretty new on this, do i have to go brtools and restore the archive logs or there is a t code in sap that I can recover from that? if it is using brtools, what is step and procedure? do I have to

  • Kernel Panic causing my iMac to restart

    iMac (27-inch, Late 2009) Processor 3.06 GHz Intel Core 2 Duo Memory 8 GB 1067 MHz DDR3 Graphics ATI Radeon HD 4670 256 MB Disk Space 406.5 GB free of 2 TB All Apps are up to date OS X Yosemite version 10.10.1 (14B25) Any idea what is causing this pr

  • CREATE CONTROLFILE REUSE DATABASE OR SET DATABASE

    Hi Guys, I'm doing a db migration from one mount point to another mount point in the same server. The location of controlfile, log files and datafiles will be change. I have updated the new controfile location in my pfile and startup nomount. When cr