none
GET-MSOLGROUP "managedby" not working

    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 1.0.0.0     ISE                                   
        Binary 16.0.5326.0 Microsoft.Online.SharePoint.PowerShell
      Manifest 3.1.0.0     Microsoft.PowerShell.Management       
      Manifest 3.0.0.0     Microsoft.PowerShell.Security         
      Manifest 3.1.0.0     Microsoft.PowerShell.Utility          
      Manifest 3.0.0.0     Microsoft.WSMan.Management            
      Manifest 1.1.166.0   MSOnline                              
        Script 1.0         tmp_qgnxjgvo.qvk   

    Thanks

    Joe

    Thursday, January 05, 2017 10:58 AM

All replies