DBTEAMMembersSetProfileError

Objective-C

@interface DBTEAMMembersSetProfileError : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMMembersSetProfileError : NSObject, DBSerializable, NSCopying

The MembersSetProfileError union.

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 “user_not_found”.

    Description of the “user_not_found” tag state: No matching user found. The provided team_member_id, email, or external_id does not exist on this team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUserNotFound;

    Swift

    init(userNotFound: ())

    Return Value

    An initialized instance.

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

    Description of the “user_not_in_team” tag state: The user is not a member of the team.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUserNotInTeam;

    Swift

    init(userNotInTeam: ())

    Return Value

    An initialized instance.

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

    Description of the “external_id_and_new_external_id_unsafe” tag state: It is unsafe to use both external_id and new_external_id.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithExternalIdAndNewExternalIdUnsafe;

    Swift

    init(externalIdAndNewExternalIdUnsafe: ())

    Return Value

    An initialized instance.

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

    Description of the “no_new_data_specified” tag state: None of new_email, new_given_name, new_surname, or new_external_id are specified.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithNoNewDataSpecified;

    Swift

    init(noNewDataSpecified: ())

    Return Value

    An initialized instance.

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

    Description of the “email_reserved_for_other_user” tag state: Email is already reserved for another user.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithEmailReservedForOtherUser;

    Swift

    init(emailReservedForOtherUser: ())

    Return Value

    An initialized instance.

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

    Description of the “external_id_used_by_other_user” tag state: The external ID is already in use by another team member.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithExternalIdUsedByOtherUser;

    Swift

    init(externalIdUsedByOtherUser: ())

    Return Value

    An initialized instance.

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

    Description of the “set_profile_disallowed” tag state: Modifying deleted users is not allowed.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSetProfileDisallowed;

    Swift

    init(setProfileDisallowed: ())

    Return Value

    An initialized instance.

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

    Description of the “param_cannot_be_empty” tag state: Parameter new_email cannot be empty.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithParamCannotBeEmpty;

    Swift

    init(paramCannotBeEmpty: ())

    Return Value

    An initialized instance.

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

    Description of the “persistent_id_disabled” tag state: Persistent ID is only available to teams with persistent ID SAML configuration. Please contact Dropbox for more information.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPersistentIdDisabled;

    Swift

    init(persistentIdDisabled: ())

    Return Value

    An initialized instance.

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

    Description of the “persistent_id_used_by_other_user” tag state: The persistent ID is already in use by another team member.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPersistentIdUsedByOtherUser;

    Swift

    init(persistentIdUsedByOtherUser: ())

    Return Value

    An initialized instance.

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

    Description of the “directory_restricted_off” tag state: Directory Restrictions option is not available.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDirectoryRestrictedOff;

    Swift

    init(directoryRestrictedOff: ())

    Return Value

    An initialized instance.

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithOther;

    Swift

    init(other: ())

    Return Value

    An initialized instance.

Tag state methods

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

    Declaration

    Objective-C

    - (BOOL)isUserNotFound;

    Swift

    func isUserNotFound() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isUserNotInTeam;

    Swift

    func isUserNotInTeam() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isExternalIdAndNewExternalIdUnsafe;

    Swift

    func isExternalIdAndNewExternalIdUnsafe() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isNoNewDataSpecified;

    Swift

    func isNoNewDataSpecified() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isEmailReservedForOtherUser;

    Swift

    func isEmailReservedForOtherUser() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isExternalIdUsedByOtherUser;

    Swift

    func isExternalIdUsedByOtherUser() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isSetProfileDisallowed;

    Swift

    func isSetProfileDisallowed() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isParamCannotBeEmpty;

    Swift

    func isParamCannotBeEmpty() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isPersistentIdDisabled;

    Swift

    func isPersistentIdDisabled() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isPersistentIdUsedByOtherUser;

    Swift

    func isPersistentIdUsedByOtherUser() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isDirectoryRestrictedOff;

    Swift

    func isDirectoryRestrictedOff() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isOther;

    Swift

    func isOther() -> Bool

    Return Value

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

  • 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.