GET-MSOLGROUP "managedby" not working RRS feed

  • Question

  • Hi All

    I think this may be a bug, but I'm willing to be wrong.  I have a large (35,000 user) Azure AD and I need to read/set the "Managed By" attribute on many of the Security groups.  For this, I'm using get-msolgroup commandlet.

    When I search for a specific MSOL group using the objectID, I can see the ManagedBy attribute in the output.  For example:

    Get-MsolGroup -ObjectId <group guid> | ft displayname,managedby

    DisplayName          ManagedBy                           
    -----------          ---------                           
    Some Group <correct ManagedBy GUID displayed here>

    However, when I use the searchString option, the ManagedBy information is not returned - it's just blank. The behavior is the same when a single group or multiple groups are returned by the search.

    Is this a bug, or am I doing something wrong?  I see no option to include specific properties.

    My loaded modules (including latest MSOL):

    Get-Module | ft moduletype,version,name -AutoSize

    ModuleType Version     Name                                  
    ---------- -------     ----                                  
        Script     ISE                                   
        Binary 16.0.5326.0 Microsoft.Online.SharePoint.PowerShell
      Manifest     Microsoft.PowerShell.Management       
      Manifest     Microsoft.PowerShell.Security         
      Manifest     Microsoft.PowerShell.Utility          
      Manifest     Microsoft.WSMan.Management            
      Manifest   MSOnline                              
        Script 1.0         tmp_qgnxjgvo.qvk   



    Thursday, January 5, 2017 10:58 AM

All replies