class GroupMembersAddError(GroupSelectorWithTeamGroupError): (source)
This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar team.GroupMembersAddError.duplicate_user: You cannot add duplicate users. One or more of the members you are trying to add is already a member of the group. :ivar team.GroupMembersAddError.group_not_in_team: Group is not in this team. You cannot add members to a group that is outside of your team. :ivar list of [str] team.GroupMembersAddError.members_not_in_team: These members are not part of your team. Currently, you cannot add members to a group if they are not part of your team, though this may change in a subsequent version. To add new members to your Dropbox Business team, use the :route:`members/add` endpoint. :ivar list of [str] team.GroupMembersAddError.users_not_found: These users were not found in Dropbox. :ivar team.GroupMembersAddError.user_must_be_active_to_be_owner: A suspended user cannot be added to a group as ``GroupAccessType.owner``. :ivar list of [str] team.GroupMembersAddError.user_cannot_be_manager_of_company_managed_group: A company-managed group cannot be managed by a user.
Class Method | members |
Create an instance of this class set to the ``members_not_in_team`` tag with value ``val``. |
Class Method | user |
Create an instance of this class set to the ``user_cannot_be_manager_of_company_managed_group`` tag with value ``val``. |
Class Method | users |
Create an instance of this class set to the ``users_not_found`` tag with value ``val``. |
Method | get |
These members are not part of your team. Currently, you cannot add members to a group if they are not part of your team, though this may change in a subsequent version. To add new members to your Dropbox Business team, use the :meth:`dropbox... |
Method | get |
A company-managed group cannot be managed by a user. |
Method | get |
These users were not found in Dropbox. |
Method | is |
Check if the union tag is ``duplicate_user``. |
Method | is |
Check if the union tag is ``group_not_in_team``. |
Method | is |
Check if the union tag is ``members_not_in_team``. |
Method | is |
Check if the union tag is ``user_cannot_be_manager_of_company_managed_group``. |
Method | is |
Check if the union tag is ``user_must_be_active_to_be_owner``. |
Method | is |
Check if the union tag is ``users_not_found``. |
Class Variable | duplicate |
Undocumented |
Class Variable | group |
Undocumented |
Class Variable | user |
Undocumented |
Method | _process |
Undocumented |
Inherited from GroupSelectorWithTeamGroupError
:
Method | is |
Check if the union tag is ``system_managed_group_disallowed``. |
Class Variable | system |
Undocumented |
Inherited from GroupSelectorError
(via GroupSelectorWithTeamGroupError
):
Method | is |
Check if the union tag is ``group_not_found``. |
Method | is |
Check if the union tag is ``other``. |
Class Variable | group |
Undocumented |
Class Variable | other |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``members_not_in_team`` tag with value ``val``. :param list of [str] val: :rtype: GroupMembersAddError
Create an instance of this class set to the ``user_cannot_be_manager_of_company_managed_group`` tag with value ``val``. :param list of [str] val: :rtype: GroupMembersAddError
Create an instance of this class set to the ``users_not_found`` tag with value ``val``. :param list of [str] val: :rtype: GroupMembersAddError
These members are not part of your team. Currently, you cannot add members to a group if they are not part of your team, though this may change in a subsequent version. To add new members to your Dropbox Business team, use the :meth:`dropbox.dropbox_client.Dropbox.team_members_add` endpoint. Only call this if :meth:`is_members_not_in_team` is true. :rtype: list of [str]
A company-managed group cannot be managed by a user. Only call this if :meth:`is_user_cannot_be_manager_of_company_managed_group` is true. :rtype: list of [str]
These users were not found in Dropbox. Only call this if :meth:`is_users_not_found` is true. :rtype: list of [str]