DBTEAMMembersSetPermissions2Arg

Objective-C

@interface DBTEAMMembersSetPermissions2Arg
    : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMMembersSetPermissions2Arg : NSObject, DBSerializable, NSCopying

The MembersSetPermissions2Arg struct.

Exactly one of team_member_id, email, or external_id must be provided to identify the user account.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

  • Identity of user whose role will be set.

    Declaration

    Objective-C

    @property (nonatomic, readonly) DBTEAMUserSelectorArg *_Nonnull user;

    Swift

    var user: DBTEAMUserSelectorArg { get }
  • The new roles for the member. Send empty list to make user member only. For now, only up to one role is allowed.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<NSString *> *dNewRoles;

    Swift

    var dNewRoles: [String]? { get }

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUser:(nonnull DBTEAMUserSelectorArg *)user
                               dNewRoles:(nullable NSArray<NSString *> *)dNewRoles;

    Swift

    init(user: DBTEAMUserSelectorArg, dNewRoles: [String]?)

    Parameters

    user

    Identity of user whose role will be set.

    dNewRoles

    The new roles for the member. Send empty list to make user member only. For now, only up to one role is allowed.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUser:(nonnull DBTEAMUserSelectorArg *)user;

    Swift

    init(user: DBTEAMUserSelectorArg)

    Parameters

    user

    Identity of user whose role will be set.

    Return Value

    An initialized instance.