ArcGIS Pro 3.7 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 signOnUserName = portal.GetSignOnUsername();
      var groups = await portal.GetGroupsFromUserAsync(signOnUserName);
      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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also