You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please specify what version of the library you are using: [ 2.0.4 ]
Please specify what version(s) of SharePoint you are targeting: [ SPO ]
Expected / Desired Behavior / Question
I'm using the graph.me.getMemberGroups() call in my SPFx web part to get the list of groups the current user belongs to.
I expect the Promise to resolve with an object that contains the value property that is an array of group ids, i.e.: getMemberGroups(securityEnabledOnly = false): Promise<{ value: string[] }>
Observed Behavior
The promise resolves directly with an array of strings and not an object with the value property. The type returned that I observe is Promise<string[]>
Category
Version
Please specify what version of the library you are using: [ 2.0.4 ]
Please specify what version(s) of SharePoint you are targeting: [ SPO ]
Expected / Desired Behavior / Question
I'm using the
graph.me.getMemberGroups()
call in my SPFx web part to get the list of groups the current user belongs to.I expect the Promise to resolve with an object that contains the
value
property that is an array of group ids, i.e.:getMemberGroups(securityEnabledOnly = false): Promise<{ value: string[] }>
Observed Behavior
The promise resolves directly with an array of strings and not an object with the
value
property. The type returned that I observe isPromise<string[]>
In the web dev console of my browser, I can see the post request to the Graph API https://graph.microsoft.com/v1.0/me/getMemberGroups.
The format of the response is:
Steps to Reproduce
I've created a test project that contains a single web part with this call in the
render
method:https://github.com/dmitryrogozhny/test-graph-getMemberOf
The text was updated successfully, but these errors were encountered: