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
1
vote
0 answers

Microsoft Graph Toolkit - just trying to load without an error

Trying to load MGT in a Javascript application via: that immediately…
smchargue
  • 11
  • 2
1
vote
2 answers

Microsoft Graph Toolkit: get logged in user

I am using the Login component of the Microsoft Graph Toolkit (React flavor). How can I retrieve the display name and User Principal Name of the logged in user? I see that the component has a loginCompleted prop, but the user is not passed…
Christophe
  • 27,383
  • 28
  • 97
  • 140
1
vote
2 answers

How to use SimpleProvider with my own MSAL C# code

I'm trying to use my own MSAL code to work together. Developed with .NET Core 5 MVC. I have similar problem as I found in below link. But I just don't know how to make it work with the proposed answer. Or in other words, I'm still confuse how this…
1
vote
1 answer

Use different profile image sizes in Microsoft Graph Toolkit

In my MGT React SharePoint WebPart, I would like to have some of the profile images displayed with large size (48px), while other images displayed with medium size (36px). I know the property avatarSize can be used, but this only supports Small,…
1
vote
1 answer

Working example for Graph Toolkit using SharePoint spfx, React and Get component with template

I'm trying to make use of the Microsoft Graph Toolkit inside my SharePoint spfx web part solution, and more specifically the React version (@microsoft/mgt-react). I've managed importing the packages, and also render the control correctly. However I…
1
vote
1 answer

How to use MgtTeamsChannelPicker in React?

I imported all necessary libs. import "@microsoft/mgt"; import "@microsoft/teams-js" put tag MgtTeamsChannelPicker into my render section render() { return ( ); } than i got an error.
Alexey Litvin
  • 33
  • 1
  • 7
1
vote
1 answer

IE and mgt-login not coperating

Question: why does my color change not work in IE(11) on the mgt-login enter image description here mgt-login { --color: #fff; } Any ideas? It works fine in other browsers Edit: It's all components i cant change css on.
1
vote
1 answer

mgt-login set userDetails not work for email and image

I am following the doc https://learn.microsoft.com/en-us/graph/toolkit/components/login and testing mg-login control and I find when I set the userDetails property of it, it will not show email or image (I set an image url in it). Is it a bug or I…
Justin Liu
  • 13
  • 3
1
vote
1 answer

Login combination betwen c# and js Msal-provider

Question: How can i use only 1 msal-provider on my mvc website currently using mgt-msal-provider through the toolkit, and Owin authentication for when i need to send an mail. tho this ends with me having 2 login buttons, which is rather…
1
vote
1 answer

It is mandatory to use the login component in order to use the other components

I'm developing an application in React, I'm using MSAL for the application login and once the user is authenticated I want to use the card component of a person but I can't make it work. I tell you what I have implemented in case I forgot some…
1
vote
1 answer

--font-size not working as a parameter inside mgt-person-card

I have been using the css variables in the mgt-person component to great success mgt-person { --font-size: 14px; --font-weight: 400; } But in the mgt-person-card the font-size property doesn't seem to affect anything? The documentation…
RobPethi
  • 551
  • 9
  • 27
1
vote
1 answer

How to avoid MGT component to appears behind another

I'm using the Microsoft Graph Toolkit to display user information from a SharePoint SPFX webpart. Specifically, I use the mgt-person and mgt-person-card components. Unfortunately, there are some native components in the page that defines a z-index:2…
Steve B
  • 36,818
  • 21
  • 101
  • 174
1
vote
2 answers

How to specify the people query for the people component?

What do I need to do to filter the responses for the people graph call? For example I need to be able to only return people (and not conference rooms) https://graph.microsoft.com/v1.0/me/people/?$filter=personType/class eq 'Person' and…
1
vote
1 answer

How do I bind JSON to the controls?

I am calling a graph API myself, is it possible to bind the resulting JSON to 1 of the controls? Say People? I couldn't really find how to do that in the docs.
0
votes
0 answers

@microsoft/mgt and mgt-msal2-provider compatibility with @Angular@16

Im' trying to upgrade my App to @Angular@16,so i had to upgrades Msal Packages too. @azure/msal-angular@3 and @azure/msal-browser@3. The Point is that @microsoft/mgt-msal2-provider is still using @azure/msal-browser": "^2.22.0 and then is…