| Visual Basic (Declaration) | |
|---|---|
Public Function UnshareTaskAsync( _ ByVal groupIds As IEnumerable(Of String) _ ) As Task(Of UnshareItemResult) | |
| C# | |
|---|---|
public Task<UnshareItemResult> UnshareTaskAsync( IEnumerable<string> groupIds ) | |
In order to use the ArcGISPortalItem.UnshareAsync Method, a user must be logged into the ArcGIS Online or ArcGIS Portal site with proper credentials. One way for a user to log into the portal site is via code using the IdentityManager Class.
The individual who is authenticated and logged into the portal site that desires to use the ArcGISPortalItem.UnshareAsync Method to remove which Groups (via their ArcGISPortalGroup.Id values) the ArcGISPortalItem is currently shared MUST meet one of the following criteria:
- The authenticated user is the owner of the ArcGISPortalItem.
- The authenticated user is the Administrator of the Organization to which the ArcGISPortalItem belongs.
- The ArcGISPortalItem has its PortalAccess value of Public and the authenticated user is the owner of the Group. Note: the ArcGISPortalItem may not have been created/owned by the authenticated user; it is only important that the ArcGISPortalItem be Public, no matter who created/owns the ArcGISPortalItem.
- The ArcGISPortalItem has its PortalAccess value of Public and the authenticated user is the Administrator of the Organization to which Group belongs. Note: the ArcGISPortalItem may not have been created/owned by the authenticated user; it is only important that the ArcGISPortalItem be Public, no matter who created/owns the ArcGISPortalItem.
Parameters
- groupIds
- The IEnumerable (aka. a collection) of Group Ids (obtained via ArcGISPortalGroup.Id values) that you want to stop sharing the item with.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8