GroupID Management Shell PowerShell Cmdlet Output and Return Values
I've been working quite a bit with the PowerShell cmdlets in the GroupID Management Shell lately, and it would help tremendously if their return values, outputs, and error handling practices were consistent with each other and with current PowerShell best practices.
For example, "New-Group" returns null for both successful group creation and failed group creation but outputs "Status :: Command Executed Successfully" or "Status :: The action is failed!" to the console. And that output cannot be redirected, captured, or suppressed, which makes the intended output from my script confusing and difficult to decipher.
Set-Group, on the other hand, returns a group object when successfully updating the primary owner of a group and nothing (null) if the owner is not successfully updated. (Plus console text such as "Status :: Update is Successful" that cannot be redirected or suppressed.)
And Get-Group returns "NO Object Found" as a text string which _can_ be stored in a variable when no group is found.
Thanks,
Mark
-
Hello Mark,
Thank you for taking the time to submit this valuable feedback and it will be an excellent addition to the product. This has been conveyed to the product team. Below is the feature request number of this request:-
Feature 35093: Community Channel [Feature Request] - GroupID Management Shell PowerShell Cmdlet Output and Return ValuesPlease keep the suggestions/feedback coming.
Please sign in to leave a comment.
Comments
1 comment