Dear Cooper, Brian D,
The error message you're seeing—“Parameter set cannot be resolved using the specified named parameters”—typically indicates a mismatch between the cmdlet’s expected input and the parameters provided. While your code aligns with documented examples for commercial tenants, it's important to note that Microsoft Graph endpoints and capabilities may differ in GovCloud environments, including support for certain beta features and object bindings.
In your script, the use of "@odata.bind"
referencing https://graph.microsoft.com/beta/users/...
may not be fully compatible with GovCloud, which uses a different endpoint (https://graph.microsoft.us
). We recommend updating the binding URL to reflect the GovCloud endpoint and verifying that the user object exists and is accessible within that scope.
Additionally, ensure that:
You are using the latest version of the Microsoft.Graph.Teams module compatible with GovCloud.
The required permissions (e.g., ChannelMember.ReadWrite.All) are granted and consented in your Azure AD Gov tenant.
The BodyParameter
object is constructed using the correct schema for GovCloud, which may differ slightly from commercial examples.
If the issue persists, we suggest testing the request using Microsoft Graph Explorer for GovCloud or reviewing the GitHub discussion on similar errors, where other users have encountered parameter resolution issues with this cmdlet.
I hope this helps. Just kindly tick Accept Answer that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
Best regards,
Domic Vo