Coder Social home page Coder Social logo

Comments (4)

mpaukkon avatar mpaukkon commented on August 28, 2024

This is now fixed.

from sharepoint.

Ofer-Gal avatar Ofer-Gal commented on August 28, 2024

When running in /_layouts/15/workbench.aspx on a site with 6 members and me the owner, The line 81 client.api("/groups/"+groupID+"/members").get().then(membersResponse => { showes in the debugger: https://graph.microsoft.com/v1.0/groups/503e6aad-6f34-42ee-b933-4cad58424e00/members 403 (Forbidden)
but running the same call in graph explorer, does show all the members.
I deployed to Sharepoint and added the web part in the team's site. But it is hitting the same 403 error.
Is there something I can do to allow this line to work?
how did you test it?

from sharepoint.

mpaukkon avatar mpaukkon commented on August 28, 2024

You need to approve API permissions for SharePoint Framework on SharePoint Admin Center. There should be Group.Read.All and Presence.Read.All Microsoft Graph permissions pending.
Direct link to API management:
https://-admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/webApiPermissionManagement

from sharepoint.

Ofer-Gal avatar Ofer-Gal commented on August 28, 2024

Thanks.
Now I see the graphics on the workbench but not in an embedded web part.
The console shows:
Access to XMLHttpRequest at 'https://waconatm.officeapps.live.com/apc/trans.gif?416e472b0562559419456648fea6d81b' from origin 'https://{mytenant}.sharepoint.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
This is weird because everything is under https://{mytenant}.sharepoint.com even the workbench

from sharepoint.

Related Issues (1)

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.