IPWorks Cloud 2020 iOS Edition

Questions / Feedback?

permissionType (property)

The set of users to which the permission applies.

Syntax

- (int)permissionType:(int)permissionIndex;
- (void)setPermissionType:(int)permissionIndex:(int)newPermissionType;

/* Possible Values */
PT_USER(0),
PT_GROUP(1),
PT_DOMAIN(2),
PT_ANYONE(3)
public func permissionType(permissionIndex: Int32) throws -> GoogledrivePermissionTypes
public func setPermissionType(permissionIndex: Int32, newPermissionType: GoogledrivePermissionTypes) throws -> Void
public enum GoogledrivePermissionTypes : Int32 { case ptUser = 0 case ptGroup = 1 case ptDomain = 2 case ptAnyone = 3 }

Default Value

0

Remarks

The set of users to which the permission applies.

This property defines the set of users to which the permission role defined in PermissionRole applies.

The PermissionEmail and PermissionDomain properties are used to define the user, group, or domain to which the permission applies. The following table shows which property is associated with which permission type:

Value Description Related property
0 (ptUser - default) A single user. PermissionEmail
1 (ptGroup) A group. PermissionEmail
2 (ptDomain) A domain. PermissionDomain
3 (ptAnyone) Anyone, authenticated or not. N/A

The PermissionIndex parameter specifies the index of the item in the array. The size of the array is controlled by the PermissionCount property.

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