GithubHelp home page GithubHelp logo

Comments (3)

Aymkdn avatar Aymkdn commented on June 12, 2024

Hi,

Check the Group Settings and make sure that Who can view the membership of the group? is Everyone and not Group Members.

Please let me know.

from sharepointplus.

DevGlogicM avatar DevGlogicM commented on June 12, 2024

Hi.

The selected option is: Group members

That would explain a part I missed during redacting my question:

When the error that I mentioned in my question appears, the responseXML attribute says:

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>No se pudo efectuar la operación ---&gt; Access denied. only an administrator can retrieve a count of all users.</faultstring><detail><ErrorCode xmlns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService">UnauthorizedAccess</ErrorCode><ErrorMessage xmlns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService">Access denied. only an administrator can retrieve a count of all users.</ErrorMessage></detail></soap:Fault></soap:Body></soap:Envelope>

Since I'm not the admin of the side "its from one of our clients", I must ask with the person who knows better the SharePoint Online site if would be acceptable make the change about Who can view the membership of the group (I'm more a C# - javascript developer than a SharePoint developer).

I'm wondering why in whoami this situation is not happening, I can use any credential and the data is retrieved with the read-only user.

Thanks for all your help.

from sharepointplus.

Aymkdn avatar Aymkdn commented on June 12, 2024

The whoami is for the current user, so it's normal to get the info for the current user. However the groupMembers checks a group, so it's normal to have the appropriate rights to get info from the group...

from sharepointplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.