Click or drag to resize

PortalGroupGetGroupUsersAsync Method (CancellationToken)

Gets the users, owner, and administrators of the group.

Namespace:  Esri.ArcGISRuntime.Portal
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.7.0.0
Syntax
C#
public Task<PortalGroupUsers> GetGroupUsersAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.ThreadingCancellationToken
Token that may be used to cancel the async operation.

Return Value

Type: TaskPortalGroupUsers
The task object representing the asynchronous get group users operation. The value of the task result is a PortalGroupUsers object.
Remarks

This Method obtains a PortalGroupUsers object which provides user information for a single PortalGroup such as: the usernames of the administrators of the group, and the usernames of the members who can access information in the group. PortalGroup objects are collections (aka. groups) of items, usually related to a specific area of interest such as maps, 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 to get information from this method. You can gain this information from anonymous access. However, to obtain information about a group that has a PortalAccess level of Private or Shared you need to use the AuthenticationManager 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).

See Also