Monday, April 17, 2017

“List 'User Information List' does not exist at site with URL” exception for users with member permission

Introduction

I was using SharePoint rest api in order to retrieve all the departments through user information list.

Problem

I was using

_spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('User Information List')/Items?$select=Department";

for the rest query. When I logged in as a site collection administrator, I got expected results.

But when I logged in as a site member I got the below exception.

List 'User Information List' does not exist at site with URL '<site url>'. 

List 'User Information List' does not exist at site with URL

Solution

Instead of using the above I used the below url and I got the expected results for users with the member permission as well.

_spPageContextInfo.webAbsoluteUrl + "_api/web/SiteUserInfoList/items?select=Department"

11 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing. WordPress Developer Brisbane

    ReplyDelete
  3. The appearance positively wonderful. All of these miniature info are fashioned utilizing massive amount historical past experience. I want it all significantly latest information

    ReplyDelete
  4. This unique seems to be thoroughly ideally suited. Each one of minor essentials are produced alongside large amount of story knowledge. I’m a for the considerably. latest information

    ReplyDelete
  5. I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.
    quenza software

    ReplyDelete
  6. The next step that you need to take after choosing a web-host for your site is to zero down upon a proper hosting plan. Depending on your needs, reseller web hosting may be the best option for you, even if you aren't a web hosting reseller. It all depends on your monetary ability to provide for the plan and hence if you run a relatively smaller website your preference will be unlike what you'll choose for a profitable site. The options presented vary between these: hosting for one little website, for a relatively larger one, for a mega-site, or a hosting plan that you can employ to extend into a network of websites. nvme ssd vps

    ReplyDelete
  7. I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.
    คลินิกความงาม

    ReplyDelete
  8. I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people.
    먹튀검증커뮤니티

    ReplyDelete
  9. I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me.
    메이저놀이터

    ReplyDelete
  10. Thank you for some other informative blog. Where else could I get that type of information written in such an ideal means? I have a mission that I’m just now working on, and I have been at the look out for such information.
    SEO Company Australia

    ReplyDelete
  11. That is the genuine importance of technology. Security Cameras

    ReplyDelete