DBTEAMAdminTier

Objective-C

@interface DBTEAMAdminTier : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMAdminTier : NSObject, DBSerializable, NSCopying

The AdminTier union.

Describes which team-related admin permissions a user has.

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

Instance fields

Constructors

  • Initializes union class with tag state of “team_admin”.

    Description of the “team_admin” tag state: User is an administrator of the team - has all permissions.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTeamAdmin;

    Swift

    init(teamAdmin: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “user_management_admin”.

    Description of the “user_management_admin” tag state: User can do most user provisioning, de-provisioning and management.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUserManagementAdmin;

    Swift

    init(userManagementAdmin: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “support_admin”.

    Description of the “support_admin” tag state: User can do a limited set of common support tasks for existing users. Note: Dropbox is adding new types of admin roles; these may display as support_admin.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSupportAdmin;

    Swift

    init(supportAdmin: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “member_only”.

    Description of the “member_only” tag state: User is not an admin of the team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMemberOnly;

    Swift

    init(memberOnly: ())

    Return Value

    An initialized instance.

Tag state methods

  • Retrieves whether the union’s current tag state has value “team_admin”.

    Declaration

    Objective-C

    - (BOOL)isTeamAdmin;

    Swift

    func isTeamAdmin() -> Bool

    Return Value

    Whether the union’s current tag state has value “team_admin”.

  • Retrieves whether the union’s current tag state has value “user_management_admin”.

    Declaration

    Objective-C

    - (BOOL)isUserManagementAdmin;

    Swift

    func isUserManagementAdmin() -> Bool

    Return Value

    Whether the union’s current tag state has value “user_management_admin”.

  • Retrieves whether the union’s current tag state has value “support_admin”.

    Declaration

    Objective-C

    - (BOOL)isSupportAdmin;

    Swift

    func isSupportAdmin() -> Bool

    Return Value

    Whether the union’s current tag state has value “support_admin”.

  • Retrieves whether the union’s current tag state has value “member_only”.

    Declaration

    Objective-C

    - (BOOL)isMemberOnly;

    Swift

    func isMemberOnly() -> Bool

    Return Value

    Whether the union’s current tag state has value “member_only”.

  • Retrieves string value of union’s current tag state.

    Declaration

    Objective-C

    - (nonnull NSString *)tagName;

    Swift

    func tagName() -> String

    Return Value

    A human-readable string representing the union’s current tag state.