ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Core.Portal Namespace / PortalGroup Class
Members Example

In This Topic
    PortalGroup Class
    In This Topic
    Represents a group within the portal (e.g., "San Bernardino Fires" ).
    Object Model
    PortalGroup ClassOnlineItem ClassTimeInstant Class
    Syntax
    Example
    Portal: Get the groups for the specified user
    //elsewhere...
    //var owner = portal.GetSignOnUsername();
    var groups = await portal.GetGroupsFromUserAsync(owner);
    foreach (var group in groups)
    {
      //Do something with the portal groups
    }
    
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Framework.Contracts.PropertyChangedBase
          ArcGIS.Desktop.Core.Item
             ArcGIS.Desktop.Core.Portal.OnlineItem
                ArcGIS.Desktop.Core.Portal.PortalGroup

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also