Search

Get-MsolGroupMember -SearchString fails by chustedde

Active

1
0
Sign in
to vote
Type: Bug
ID: 776237
Opened: 1/10/2013 6:19:34 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
The -SearchString parameter does not work as documented for Get-MsolGroupMember. From the help for this cmdlet: "-SearchString <string> The string to search on. Only objects with a display name or email address starting with this string will be returned" Instead of returning objects or an empty result, it throws an error.

This is similar to this previously reported bug: https://connect.microsoft.com/PowerShell/feedback/details/769500/searchstring-parameter-documentation-issue-for-get-msoluser-msonline-module-office-365
Details (expand)
How often does this happen?
Always Happens

Have you seen this problem before in this product?

I don't know if this issue existed previously
Reproduction Steps
Get-MsolGroupMember -GroupObjectId <ID> -SearchString $str gives this error:

Get-MsolGroupMember : Invalid value for parameter. Parameter name: SearchString.
At line:1 char:20
+ Get-MsolGroupMember <<<< -GroupObjectId <ID> -SearchString $str
    + CategoryInfo         : OperationStopped: (:) [Get-MsolGroupMember], MicrosoftOnlineException
    + FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.PropertyValidationException,Microsoft.Online.Admini
stration.Automation.GetGroupMember
Expected Results
Objects where the display name or email address is like the search string, or no objects (but no error) if there were no matches.
File Attachments
0 attachments
Sign in to post a comment.
Sign in to post a workaround.