IPWorks Cloud 2020 Python Edition

Questions / Feedback?

resource_access_type Property

The type of access the current user has to the resource.

Syntax

def get_resource_access_type(resource_index: int) -> int: ...

Default Value

0

Remarks

The type of access the current user has to the resource.

This property reflects the type of access the current user has to the resource. Possible values are:

0 (atUnrestricted) The user's access to the resource is not restricted.
1 (atReadOnly) The user has read-only access to the resource. This indicates that the resource is, or is located within, a read-only shared folder.
2 (atLimited) The user has limited access to the immediate contents of the folder resource (by virtue of having access to one or more other resources located somewhere within the folder). See further notes below. Only applicable to folders.
3 (atNoAccess) The user is allowed to see that the folder resource exists, but may not access its contents. Only applicable to folders.

An access type of 2 (atLimited) still allows the user to call list_resources for a folder, but the results will be limited to the subset of resources within that folder that the user can actually access (including any further limited-access subfolders).

The resource_index parameter specifies the index of the item in the array. The size of the array is controlled by the resource_count property.

This property is read-only.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Python Edition - Version 20.0 [Build 8265]