Show / Hide Table of Contents

Method GetGroupUsersAsync

GetGroupUsersAsync()

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

Declaration
public Task<PortalGroupUsers> GetGroupUsersAsync()
Returns
Type Description
System.Threading.Tasks.Task<PortalGroupUsers>

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).

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7

GetGroupUsersAsync(CancellationToken)

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

Declaration
public Task<PortalGroupUsers> GetGroupUsersAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken

Token that may be used to cancel the async operation.

Returns
Type Description
System.Threading.Tasks.Task<PortalGroupUsers>

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).

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.