| Visual Basic (Declaration) | |
|---|---|
Public Function GetGroupUsersTaskAsync() As Task(Of ArcGISPortalGroupUsers) | |
| C# | |
|---|---|
public Task<ArcGISPortalGroupUsers> GetGroupUsersTaskAsync() | |
This Method obtains a Portal.ArcGISPortalGroupUsers object. The Portal.ArcGISPortalGroupUsers object provides user information for a single Portal.ArcGISPortalGroup such as: the usernames of the administrators of the group, the username of the owner of the group, and the usernames of the members who can access information in the group. Portal.ArcGISPortalGroup objects are collections (aka. groups) of items, usually related to a specific area of interest such as maps (aka. WebMap), applications, and tools. Groups allow members to contribute items as a useful way to collaborate.
You do not have to be a logged in user using the IdentityManager to get information from this Method. You can gain this information from anonymous access. However, to obtain information about a group that has a Portal.PortalAccess level of Private or Shared you need to use the IdentityManager by supplying the appropriate username/password credentials. As AGOL and ArcGIS Portal require the use of long term tokens to access secured information (i.e. information that is Private/Shared), you should remember to set the IdentityManager.TokenGenerationReferer Property to the correct string required by your development platform.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8