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
The Get-mgTeamMember does not return all the member/owners of a Team. Results of the Team admin center are more accurate.
Expected behavior
results of the get-MGTEamMember should match with the Teams admin center, as verified by get-PnPTeamsUser
How to reproduce
steps to produce the problem:
Use get-MGTeamMember -TeamID $TeamID | select displayname, roles | ft
Use the Teams Admin Center and show the same team memberships
The Admin center GUI shows more members than the results returned in step 1.
The results in GUI are verified to be accurate because a call to get-PnPTeamsUser returns the exact same results in step 2.
Any attempt to update a member missing in step 1, but found in step 2 using update-MGTeamMember (for example change from member to owner) results in an error message: Could not find member. Status: 404 (NotFound) ErrorCode: NotFound
MarkF26
changed the title
get-MGTeamMember does not retrun all members or owners of a Team
get-mgTeamMember does not retrun all members or owners of a Team
Jul 5, 2024
@MarkF26 it seems you are combining two issues here. One for GET and the other one for PATCH requests.
For the GET request, i.e. GET-MgTeamMember, have you tried supplying the -All parameter? Also please add a -Debug parameter and verify on the response body whether the @odata.count tallies with the number of items you have in the GUI.
I was not able to reproduce the issue on the update request. Please ensure that you are supplying the correct conversation member id. It should be among the list of Ids returned by Get-MgTeamMember.
Describe the bug
The Get-mgTeamMember does not return all the member/owners of a Team. Results of the Team admin center are more accurate.
Expected behavior
results of the get-MGTEamMember should match with the Teams admin center, as verified by
get-PnPTeamsUser
How to reproduce
steps to produce the problem:
get-MGTeamMember -TeamID $TeamID | select displayname, roles | ft
The Admin center GUI shows more members than the results returned in step 1.
The results in GUI are verified to be accurate because a call to
get-PnPTeamsUser
returns the exact same results in step 2.Any attempt to update a member missing in step 1, but found in step 2 using
update-MGTeamMember
(for example change from member to owner) results in an error message:Could not find member. Status: 404 (NotFound) ErrorCode: NotFound
SDK Version
2.19.0
Latest version known to work for scenario above?
not tried
Known Workarounds
none
Debug output
Click to expand log
```Configuration
Other information
No response
The text was updated successfully, but these errors were encountered: