Questions tagged [microsoft-graph-toolkit]

Questions relating to the Microsoft Graph Toolkit

Find out more about the Microsoft Graph Toolkit in the documentation or at the GitHub project page.

112 questions
0
votes
1 answer

globalProvider Issue with v2.0 preview

I'm having the same issue with the new 2.0 preview as per this issue, and the same fix worked (thanks!). However, is there any guidance on how to access the global provider going forward, with v2, so we can prepare?
Hilton Giesenow
  • 9,809
  • 2
  • 10
  • 24
0
votes
1 answer

Mgt-Login not firing a loginCompleted event

I've got an mgt-login component working fine in a page, but I can't seem to get the loginCompleted event to fire, using the following: document.querySelector('mgt-login').addEventListener('loginCompleted', e => { console.log(e); …
Hilton Giesenow
  • 9,809
  • 2
  • 10
  • 24
0
votes
1 answer

How to get input values from mgt-people-picker when a FORM is submitted

I'm using mgt-people-picker from within an ASP.Net Razor application, using a ProxyController to get all the data from the Graph API. Everything is working fine. Now I want to get the infos from a Form I've created, containing a people list, from…
0
votes
1 answer

mgt-login is not working as expected in sample example

mgt-login was working and returning user displayname and profile photo. However it is showing this error message in console. This code worked as expected earlier.
0
votes
1 answer

Microsoft Graph toolkit component mgt-login event is not called in React App with hooks

I have implemented mgt-login component from Microsoft Graph toolkit, it is working fine but it's not calling event I added to mgt-login within useEffect. Duplicate question here - I did follow this question but still its not calling event I added.…
parag patel
  • 2,933
  • 1
  • 10
  • 22
0
votes
0 answers

How to use people-picker-component in Azure hosted website without any reference with Sharepoint

I'm trying to create a people picker component in asp.net framework project hosted through azure web app service. I'm logging in to the application using Microsoft Identity Platform. I used mgt-people-picker component but the issue I'm facing with…
0
votes
1 answer

People Picker from Microsoft graph API toolkit is not working

I am using msal authentication same as this example microsoft-authentication-library-for-js on login page. Once you are logged in I am redirecting to page where I have People picker component. That component code is something like down below. My…
0
votes
1 answer

How do I get a user's presence by the email address with Microsoft graph toolkit?

In Teams, SharePoint, and Outlook, we see all users' presence. Why can't we get it easily with graph toolkit? How do I get a user's presence by the email address with the Microsoft graph toolkit?
Ofer Gal
  • 707
  • 1
  • 10
  • 32
0
votes
1 answer

Is there a way to change the toolkit to use beta endpoint?

Is there a way for the components to use the beta endpoint to Microsoft Graph api, example selectedPeople returns the emails as a ScornedEmailAddress where the beta endpoint returns it as a RankedEmailAddress? Edit: added my…
0
votes
1 answer

Cors blocking when trying to use mgt-login and mgt-msal-provider

I cant seem to understand why im getting this problem, can anyone please help im developing in C# MVC web application authority = https://login.microsoftonline.com/{tenant_id}/v2.0 (without {}) (remove the /v2.0 that fixed it for me thanks to…
0
votes
1 answer

mgt-person : Open user chat window

I have implemented mgt-person in my Teams application and I have a problem when I click on the button to chat with a user. The application is correctly open but a popup appears which informs me that the user doesn't exist even though I'm on the…
0
votes
1 answer

Can't install @microsoft/mgt via npm

everyone, when trying to install the package for the MS Graph toolkit via npm install @microsoft/mgt I receive an error that the typescript-typings package can not be found: PS C:\Users\dev\Dev\Webpart> npm install @microsoft/mgt npm ERR! path…
0
votes
1 answer

Display person-card directly without hover

I'm building SPFx solution which pull users from SharePoint list. I want to show user details and along with Email, Phone number, Call Icons similar to person card. Since Microsoft graph toolkit already has an component names person-card, I would…
Srinivas Narula
  • 499
  • 4
  • 7
0
votes
1 answer

mgt-people doesn't refresh in child component when updating user-ids from parent component

I'm having a React component that has both mgt-people and mgt-people-picker which takes props from its parent component. The idea is to update mgt-people by selecting people from mgt-people-picker, but it's not working. It did update in simply…
H Z
  • 7
  • 3
0
votes
2 answers

How to use mgt-people-picker in react framework

I'm trying to use mgt-people-picker inside my SPFx Webpart with React framework, and couldn't get the selected-people attribute work. I tried passing an array of graph user objects to it but no luck. When I tried to…
H Z
  • 7
  • 3