none
Inconsistent result with GetUserEffectivePermissions API

    Question

  • We are trying to check permission of the current user from our app, using CSOM function GetUserEffectivePermissions. The result returned is inconsistent where we can sometimes get the expected result (permission of the user) but sometimes not (Access Denied), even for a same user in a same site.

    var basicPerms = ctx.Web.GetUserEffectivePermissions(clientContext.Web.CurrentUser.LoginName);

    HTTP Request made:

    http://pastebin.com/4fuJ3caz

    HTTP response (with access denied message):

    http://pastebin.com/UhTc2hX8

     Any ideas?




    • Moved by Nan_Yu Tuesday, August 2, 2016 2:49 AM
    • Edited by Kok Fong Tuesday, August 2, 2016 6:08 AM
    Monday, August 1, 2016 9:35 AM

All replies

  • Hi Kok Fong,

    This is the forum to discuss questions and feedback for Office 365 for Developers. I'll move your question to the Technet forum for SharePoint Online 

    https://social.technet.microsoft.com/Forums/msonline/en-US/home?forum=onlineservicessharepoint 

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. 

    Thanks for your understanding.

    Best Regards,

    Nan Yu
    Tuesday, August 2, 2016 2:48 AM