public class DbxTeamTeamRequests extends Object
Constructor and Description |
---|
DbxTeamTeamRequests(DbxRawClientV2 client) |
Modifier and Type | Method and Description |
---|---|
ListMemberDevicesResult |
devicesListMemberDevices(String teamMemberId)
List all device sessions of a team's member.
|
DevicesListMemberDevicesBuilder |
devicesListMemberDevicesBuilder(String teamMemberId)
List all device sessions of a team's member.
|
ListMembersDevicesResult |
devicesListMembersDevices()
List all device sessions of a team.
|
DevicesListMembersDevicesBuilder |
devicesListMembersDevicesBuilder()
List all device sessions of a team.
|
ListTeamDevicesResult |
devicesListTeamDevices()
Deprecated.
|
DevicesListTeamDevicesBuilder |
devicesListTeamDevicesBuilder()
Deprecated.
|
void |
devicesRevokeDeviceSession(RevokeDeviceSessionArg arg)
Revoke a device session of a team's member
|
RevokeDeviceSessionBatchResult |
devicesRevokeDeviceSessionBatch(List<RevokeDeviceSessionArg> revokeDevices)
Revoke a list of device sessions of team members
|
TeamGetInfoResult |
getInfo()
Retrieves information about a team.
|
GroupFullInfo |
groupsCreate(String groupName)
Creates a new, empty group, with a requested name.
|
GroupsCreateBuilder |
groupsCreateBuilder(String groupName)
Creates a new, empty group, with a requested name.
|
LaunchEmptyResult |
groupsDelete(GroupSelector arg)
Deletes a group.
|
List<GroupsGetInfoItem> |
groupsGetInfo(GroupsSelector arg)
Retrieves information about one or more groups.
|
PollEmptyResult |
groupsJobStatusGet(String asyncJobId)
Once an async_job_id is returned from
groupsDelete(com.dropbox.core.v2.team.GroupSelector) , groupsMembersAdd(GroupSelector,List,boolean) , or
groupsMembersRemove(GroupSelector,List,boolean) use
this method to poll the status of granting/revoking group members' access
to group-owned resources. |
GroupsListResult |
groupsList()
Lists groups on a team.
|
GroupsListResult |
groupsList(long limit)
Lists groups on a team.
|
GroupsListResult |
groupsListContinue(String cursor)
Once a cursor has been retrieved from
groupsList(long) , use this to paginate through all
groups. |
GroupMembersChangeResult |
groupsMembersAdd(GroupSelector group,
List<MemberAccess> members)
Adds members to a group.
|
GroupMembersChangeResult |
groupsMembersAdd(GroupSelector group,
List<MemberAccess> members,
boolean returnMembers)
Adds members to a group.
|
GroupsMembersListResult |
groupsMembersList(GroupSelector group)
Lists members of a group.
|
GroupsMembersListResult |
groupsMembersList(GroupSelector group,
long limit)
Lists members of a group.
|
GroupsMembersListResult |
groupsMembersListContinue(String cursor)
Once a cursor has been retrieved from
groupsMembersList(GroupSelector,long) , use this to
paginate through all members of the group. |
GroupMembersChangeResult |
groupsMembersRemove(GroupSelector group,
List<UserSelectorArg> users)
Removes members from a group.
|
GroupMembersChangeResult |
groupsMembersRemove(GroupSelector group,
List<UserSelectorArg> users,
boolean returnMembers)
Removes members from a group.
|
List<GroupsGetInfoItem> |
groupsMembersSetAccessType(GroupSelector group,
UserSelectorArg user,
GroupAccessType accessType)
Sets a member's access type in a group.
|
List<GroupsGetInfoItem> |
groupsMembersSetAccessType(GroupSelector group,
UserSelectorArg user,
GroupAccessType accessType,
boolean returnMembers)
Sets a member's access type in a group.
|
GroupFullInfo |
groupsUpdate(GroupSelector group)
Updates a group's name and/or external ID.
|
GroupsUpdateBuilder |
groupsUpdateBuilder(GroupSelector group)
Updates a group's name and/or external ID.
|
ListMemberAppsResult |
linkedAppsListMemberLinkedApps(String teamMemberId)
List all linked applications of the team member.
|
ListMembersAppsResult |
linkedAppsListMembersLinkedApps()
List all applications linked to the team members' accounts.
|
ListMembersAppsResult |
linkedAppsListMembersLinkedApps(String cursor)
List all applications linked to the team members' accounts.
|
ListTeamAppsResult |
linkedAppsListTeamLinkedApps()
Deprecated.
use
linkedAppsListMembersLinkedApps(String) instead. |
ListTeamAppsResult |
linkedAppsListTeamLinkedApps(String cursor)
Deprecated.
use
linkedAppsListMembersLinkedApps(String) instead. |
void |
linkedAppsRevokeLinkedApp(String appId,
String teamMemberId)
Revoke a linked application of the team member
|
void |
linkedAppsRevokeLinkedApp(String appId,
String teamMemberId,
boolean keepAppFolder)
Revoke a linked application of the team member
|
RevokeLinkedAppBatchResult |
linkedAppsRevokeLinkedAppBatch(List<RevokeLinkedApiAppArg> revokeLinkedApp)
Revoke a list of linked applications of the team members
|
MembersAddLaunch |
membersAdd(List<MemberAddArg> newMembers)
Adds members to a team.
|
MembersAddLaunch |
membersAdd(List<MemberAddArg> newMembers,
boolean forceAsync)
Adds members to a team.
|
MembersAddJobStatus |
membersAddJobStatusGet(String asyncJobId)
Once an async_job_id is returned from
membersAdd(List,boolean) , use this to poll the
status of the asynchronous request. |
List<MembersGetInfoItem> |
membersGetInfo(List<UserSelectorArg> members)
Returns information about multiple team members.
|
MembersListResult |
membersList()
Lists members of a team.
|
MembersListBuilder |
membersListBuilder()
Lists members of a team.
|
MembersListResult |
membersListContinue(String cursor)
Once a cursor has been retrieved from
membersList(com.dropbox.core.v2.team.MembersListArg) , use this to paginate through all team
members. |
void |
membersRecover(UserSelectorArg user)
Recover a deleted member.
|
LaunchEmptyResult |
membersRemove(UserSelectorArg user)
Removes a member from a team.
|
MembersRemoveBuilder |
membersRemoveBuilder(UserSelectorArg user)
Removes a member from a team.
|
PollEmptyResult |
membersRemoveJobStatusGet(String asyncJobId)
Once an async_job_id is returned from
membersRemove(UserSelectorArg) , use this to poll
the status of the asynchronous request. |
void |
membersSendWelcomeEmail(UserSelectorArg arg)
Sends welcome email to pending team member.
|
MembersSetPermissionsResult |
membersSetAdminPermissions(UserSelectorArg user,
AdminTier newRole)
Updates a team member's permissions.
|
TeamMemberInfo |
membersSetProfile(UserSelectorArg user)
Updates a team member's profile.
|
MembersSetProfileBuilder |
membersSetProfileBuilder(UserSelectorArg user)
Updates a team member's profile.
|
void |
membersSuspend(UserSelectorArg user)
Suspend a member from a team.
|
void |
membersSuspend(UserSelectorArg user,
boolean wipeData)
Suspend a member from a team.
|
void |
membersUnsuspend(UserSelectorArg user)
Unsuspend a member from a team.
|
GetActivityReport |
reportsGetActivity()
Retrieves reporting data about a team's user activity.
|
ReportsGetActivityBuilder |
reportsGetActivityBuilder()
Retrieves reporting data about a team's user activity.
|
GetDevicesReport |
reportsGetDevices()
Retrieves reporting data about a team's linked devices.
|
ReportsGetDevicesBuilder |
reportsGetDevicesBuilder()
Retrieves reporting data about a team's linked devices.
|
GetMembershipReport |
reportsGetMembership()
Retrieves reporting data about a team's membership.
|
ReportsGetMembershipBuilder |
reportsGetMembershipBuilder()
Retrieves reporting data about a team's membership.
|
GetStorageReport |
reportsGetStorage()
Retrieves reporting data about a team's storage usage.
|
ReportsGetStorageBuilder |
reportsGetStorageBuilder()
Retrieves reporting data about a team's storage usage.
|
public DbxTeamTeamRequests(DbxRawClientV2 client)
public ListMemberDevicesResult devicesListMemberDevices(String teamMemberId) throws ListMemberDevicesErrorException, DbxException
The default values for the optional request parameters will be used.
See DevicesListMemberDevicesBuilder
for more details.
teamMemberId
- The team's member id. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.ListMemberDevicesErrorException
DbxException
public DevicesListMemberDevicesBuilder devicesListMemberDevicesBuilder(String teamMemberId)
teamMemberId
- The team's member id. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public ListMembersDevicesResult devicesListMembersDevices() throws ListMembersDevicesErrorException, DbxException
The default values for the optional request parameters will be used.
See DevicesListMembersDevicesBuilder
for more details.
public DevicesListMembersDevicesBuilder devicesListMembersDevicesBuilder()
@Deprecated public ListTeamDevicesResult devicesListTeamDevices() throws ListTeamDevicesErrorException, DbxException
devicesListMembersDevices(com.dropbox.core.v2.team.ListMembersDevicesArg)
instead. The default values for the optional request parameters will be used.
See DevicesListTeamDevicesBuilder
for more details.
@Deprecated public DevicesListTeamDevicesBuilder devicesListTeamDevicesBuilder()
devicesListMembersDevices(com.dropbox.core.v2.team.ListMembersDevicesArg)
instead.public void devicesRevokeDeviceSession(RevokeDeviceSessionArg arg) throws RevokeDeviceSessionErrorException, DbxException
public RevokeDeviceSessionBatchResult devicesRevokeDeviceSessionBatch(List<RevokeDeviceSessionArg> revokeDevices) throws RevokeDeviceSessionBatchErrorException, DbxException
revokeDevices
- Must not contain a null
item and not be
null
.IllegalArgumentException
- If any argument does not meet its
preconditions.RevokeDeviceSessionBatchErrorException
DbxException
public TeamGetInfoResult getInfo() throws DbxApiException, DbxException
DbxApiException
DbxException
public GroupFullInfo groupsCreate(String groupName) throws GroupCreateErrorException, DbxException
groupName
- Group name. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.GroupCreateErrorException
DbxException
public GroupsCreateBuilder groupsCreateBuilder(String groupName)
groupName
- Group name. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public LaunchEmptyResult groupsDelete(GroupSelector arg) throws GroupDeleteErrorException, DbxException
groupsJobStatusGet(String)
to determine whether this
process has completed. Permission : Team member managementarg
- Argument for selecting a single group, either by group_id or
by external group ID.GroupDeleteErrorException
DbxException
public List<GroupsGetInfoItem> groupsGetInfo(GroupsSelector arg) throws GroupsGetInfoErrorException, DbxException
arg
- Argument for selecting a list of groups, either by group_ids,
or external group IDs.GroupsGetInfoErrorException
DbxException
public PollEmptyResult groupsJobStatusGet(String asyncJobId) throws GroupsPollErrorException, DbxException
groupsDelete(com.dropbox.core.v2.team.GroupSelector)
, groupsMembersAdd(GroupSelector,List,boolean)
, or
groupsMembersRemove(GroupSelector,List,boolean)
use
this method to poll the status of granting/revoking group members' access
to group-owned resources. Permission : Team member managementasyncJobId
- Id of the asynchronous job. This is the value of a
response returned from the method that launched the job. Must have
length of at least 1 and not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.GroupsPollErrorException
DbxException
public GroupsListResult groupsList() throws DbxApiException, DbxException
The limit
request parameter will default to 1000L
(see groupsList(long)
).
DbxApiException
DbxException
public GroupsListResult groupsList(long limit) throws DbxApiException, DbxException
limit
- Number of results to return per call. Must be greater than
or equal to 1 and be less than or equal to 1000.IllegalArgumentException
- If any argument does not meet its
preconditions.DbxApiException
DbxException
public GroupsListResult groupsListContinue(String cursor) throws GroupsListContinueErrorException, DbxException
groupsList(long)
, use this to paginate through all
groups. Permission : Team informationcursor
- Indicates from what point to get the next set of groups.
Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.GroupsListContinueErrorException
DbxException
public GroupMembersChangeResult groupsMembersAdd(GroupSelector group, List<MemberAccess> members) throws GroupMembersAddErrorException, DbxException
groupsJobStatusGet(String)
to determine
whether this process has completed. Permission : Team member management
The returnMembers
request parameter will default to true
(see groupsMembersAdd(GroupSelector,List,boolean)
).
group
- Group to which users will be added. Must not be null
.members
- List of users to be added to the group. Must not contain
a null
item and not be null
.groupsMembersAdd(GroupSelector,List,boolean)
and
groupsMembersRemove(GroupSelector,List,boolean)
.IllegalArgumentException
- If any argument does not meet its
preconditions.GroupMembersAddErrorException
DbxException
public GroupMembersChangeResult groupsMembersAdd(GroupSelector group, List<MemberAccess> members, boolean returnMembers) throws GroupMembersAddErrorException, DbxException
groupsJobStatusGet(String)
to determine
whether this process has completed. Permission : Team member managementgroup
- Group to which users will be added. Must not be null
.members
- List of users to be added to the group. Must not contain
a null
item and not be null
.returnMembers
- Whether to return the list of members in the group.
Note that the default value will cause all the group members to be
returned in the response. This may take a long time for large groups.groupsMembersAdd(GroupSelector,List,boolean)
and
groupsMembersRemove(GroupSelector,List,boolean)
.IllegalArgumentException
- If any argument does not meet its
preconditions.GroupMembersAddErrorException
DbxException
public GroupsMembersListResult groupsMembersList(GroupSelector group) throws GroupSelectorErrorException, DbxException
The limit
request parameter will default to 1000L
(see groupsMembersList(GroupSelector,long)
).
group
- The group whose members are to be listed. Must not be
null
.IllegalArgumentException
- If any argument does not meet its
preconditions.GroupSelectorErrorException
DbxException
public GroupsMembersListResult groupsMembersList(GroupSelector group, long limit) throws GroupSelectorErrorException, DbxException
group
- The group whose members are to be listed. Must not be
null
.limit
- Number of results to return per call. Must be greater than
or equal to 1 and be less than or equal to 1000.IllegalArgumentException
- If any argument does not meet its
preconditions.GroupSelectorErrorException
DbxException
public GroupsMembersListResult groupsMembersListContinue(String cursor) throws GroupsMembersListContinueErrorException, DbxException
groupsMembersList(GroupSelector,long)
, use this to
paginate through all members of the group. Permission : Team informationcursor
- Indicates from what point to get the next set of groups.
Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.GroupsMembersListContinueErrorException
DbxException
public GroupMembersChangeResult groupsMembersRemove(GroupSelector group, List<UserSelectorArg> users) throws GroupMembersRemoveErrorException, DbxException
groupsJobStatusGet(String)
to
determine whether this process has completed. This method permits
removing the only owner of a group, even in cases where this is not
possible via the web client. Permission : Team member management
The returnMembers
request parameter will default to true
(see groupsMembersRemove(GroupSelector,List,boolean)
).
group
- Group from which users will be removed. Must not be null
.users
- List of users to be removed from the group. Must not
contain a null
item and not be null
.groupsMembersAdd(GroupSelector,List,boolean)
and
groupsMembersRemove(GroupSelector,List,boolean)
.IllegalArgumentException
- If any argument does not meet its
preconditions.GroupMembersRemoveErrorException
DbxException
public GroupMembersChangeResult groupsMembersRemove(GroupSelector group, List<UserSelectorArg> users, boolean returnMembers) throws GroupMembersRemoveErrorException, DbxException
groupsJobStatusGet(String)
to
determine whether this process has completed. This method permits
removing the only owner of a group, even in cases where this is not
possible via the web client. Permission : Team member managementgroup
- Group from which users will be removed. Must not be null
.users
- List of users to be removed from the group. Must not
contain a null
item and not be null
.returnMembers
- Whether to return the list of members in the group.
Note that the default value will cause all the group members to be
returned in the response. This may take a long time for large groups.groupsMembersAdd(GroupSelector,List,boolean)
and
groupsMembersRemove(GroupSelector,List,boolean)
.IllegalArgumentException
- If any argument does not meet its
preconditions.GroupMembersRemoveErrorException
DbxException
public List<GroupsGetInfoItem> groupsMembersSetAccessType(GroupSelector group, UserSelectorArg user, GroupAccessType accessType) throws GroupMemberSetAccessTypeErrorException, DbxException
The returnMembers
request parameter will default to true
(see groupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean)
).
group
- Specify a group. Must not be null
.user
- Identity of a user that is a member of the group
argument to groupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean)
.
Must not be null
.accessType
- New group access type the user will have. Must not be
null
.IllegalArgumentException
- If any argument does not meet its
preconditions.GroupMemberSetAccessTypeErrorException
DbxException
public List<GroupsGetInfoItem> groupsMembersSetAccessType(GroupSelector group, UserSelectorArg user, GroupAccessType accessType, boolean returnMembers) throws GroupMemberSetAccessTypeErrorException, DbxException
group
- Specify a group. Must not be null
.user
- Identity of a user that is a member of the group
argument to groupsMembersSetAccessType(GroupSelector,UserSelectorArg,GroupAccessType,boolean)
.
Must not be null
.accessType
- New group access type the user will have. Must not be
null
.returnMembers
- Whether to return the list of members in the group.
Note that the default value will cause all the group members to be
returned in the response. This may take a long time for large groups.IllegalArgumentException
- If any argument does not meet its
preconditions.GroupMemberSetAccessTypeErrorException
DbxException
public GroupFullInfo groupsUpdate(GroupSelector group) throws GroupUpdateErrorException, DbxException
The default values for the optional request parameters will be used.
See GroupsUpdateBuilder
for more details.
group
- Specify a group. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.GroupUpdateErrorException
DbxException
public GroupsUpdateBuilder groupsUpdateBuilder(GroupSelector group)
group
- Specify a group. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public ListMemberAppsResult linkedAppsListMemberLinkedApps(String teamMemberId) throws ListMemberAppsErrorException, DbxException
teamMemberId
- The team member id. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.ListMemberAppsErrorException
DbxException
public ListMembersAppsResult linkedAppsListMembersLinkedApps() throws ListMembersAppsErrorException, DbxException
linkedAppsListMembersLinkedApps(String)
.ListMembersAppsErrorException
DbxException
public ListMembersAppsResult linkedAppsListMembersLinkedApps(String cursor) throws ListMembersAppsErrorException, DbxException
cursor
- At the first call to the linkedAppsListMembersLinkedApps(String)
the
cursor shouldn't be passed. Then, if the result of the call includes
a cursor, the following requests should include the received cursors
in order to receive the next sub list of the team applications.linkedAppsListMembersLinkedApps(String)
.ListMembersAppsErrorException
DbxException
@Deprecated public ListTeamAppsResult linkedAppsListTeamLinkedApps() throws ListTeamAppsErrorException, DbxException
linkedAppsListMembersLinkedApps(String)
instead.linkedAppsListTeamLinkedApps(String)
.ListTeamAppsErrorException
DbxException
@Deprecated public ListTeamAppsResult linkedAppsListTeamLinkedApps(String cursor) throws ListTeamAppsErrorException, DbxException
linkedAppsListMembersLinkedApps(String)
instead.cursor
- At the first call to the linkedAppsListTeamLinkedApps(String)
the cursor
shouldn't be passed. Then, if the result of the call includes a
cursor, the following requests should include the received cursors in
order to receive the next sub list of the team applications.linkedAppsListTeamLinkedApps(String)
.ListTeamAppsErrorException
DbxException
public void linkedAppsRevokeLinkedApp(String appId, String teamMemberId) throws RevokeLinkedAppErrorException, DbxException
The keepAppFolder
request parameter will default to true
(see linkedAppsRevokeLinkedApp(String,String,boolean)
).
appId
- The application's unique id. Must not be null
.teamMemberId
- The unique id of the member owning the device. Must
not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.RevokeLinkedAppErrorException
DbxException
public void linkedAppsRevokeLinkedApp(String appId, String teamMemberId, boolean keepAppFolder) throws RevokeLinkedAppErrorException, DbxException
appId
- The application's unique id. Must not be null
.teamMemberId
- The unique id of the member owning the device. Must
not be null
.keepAppFolder
- Whether to keep the application dedicated folder
(in case the application uses one).IllegalArgumentException
- If any argument does not meet its
preconditions.RevokeLinkedAppErrorException
DbxException
public RevokeLinkedAppBatchResult linkedAppsRevokeLinkedAppBatch(List<RevokeLinkedApiAppArg> revokeLinkedApp) throws RevokeLinkedAppBatchErrorException, DbxException
revokeLinkedApp
- Must not contain a null
item and not be
null
.IllegalArgumentException
- If any argument does not meet its
preconditions.RevokeLinkedAppBatchErrorException
DbxException
public MembersAddLaunch membersAdd(List<MemberAddArg> newMembers) throws DbxApiException, DbxException
The forceAsync
request parameter will default to false
(see membersAdd(List,boolean)
).
newMembers
- Details of new members to be added to the team. Must
not contain a null
item and not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.DbxApiException
DbxException
public MembersAddLaunch membersAdd(List<MemberAddArg> newMembers, boolean forceAsync) throws DbxApiException, DbxException
newMembers
- Details of new members to be added to the team. Must
not contain a null
item and not be null
.forceAsync
- Whether to force the add to happen asynchronously.IllegalArgumentException
- If any argument does not meet its
preconditions.DbxApiException
DbxException
public MembersAddJobStatus membersAddJobStatusGet(String asyncJobId) throws PollErrorException, DbxException
membersAdd(List,boolean)
, use this to poll the
status of the asynchronous request. Permission : Team member managementasyncJobId
- Id of the asynchronous job. This is the value of a
response returned from the method that launched the job. Must have
length of at least 1 and not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.PollErrorException
DbxException
public List<MembersGetInfoItem> membersGetInfo(List<UserSelectorArg> members) throws MembersGetInfoErrorException, DbxException
MembersGetInfoItem.getIdNotFoundValue()
, for IDs (or emails) that cannot
be matched to a valid team member.members
- List of team members. Must not contain a null
item and not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.MembersGetInfoErrorException
DbxException
public MembersListResult membersList() throws MembersListErrorException, DbxException
The default values for the optional request parameters will be used.
See MembersListBuilder
for more details.
public MembersListBuilder membersListBuilder()
public MembersListResult membersListContinue(String cursor) throws MembersListContinueErrorException, DbxException
membersList(com.dropbox.core.v2.team.MembersListArg)
, use this to paginate through all team
members. Permission : Team informationcursor
- Indicates from what point to get the next set of members.
Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.MembersListContinueErrorException
DbxException
public void membersRecover(UserSelectorArg user) throws MembersRecoverErrorException, DbxException
user
- Identity of user to recover. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.MembersRecoverErrorException
DbxException
public LaunchEmptyResult membersRemove(UserSelectorArg user) throws MembersRemoveErrorException, DbxException
membersAdd(List,boolean)
with the removed user's
email address will create a new account with a new team_member_id that
will not have access to any content that was shared with the initial
account. This endpoint may initiate an asynchronous job. To obtain the
final result of the job, the client should periodically poll membersRemoveJobStatusGet(String)
.
The default values for the optional request parameters will be used.
See MembersRemoveBuilder
for more details.
user
- Identity of user to remove/suspend. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.MembersRemoveErrorException
DbxException
public MembersRemoveBuilder membersRemoveBuilder(UserSelectorArg user)
membersAdd(List,boolean)
with the removed user's
email address will create a new account with a new team_member_id that
will not have access to any content that was shared with the initial
account. This endpoint may initiate an asynchronous job. To obtain the
final result of the job, the client should periodically poll membersRemoveJobStatusGet(String)
.user
- Identity of user to remove/suspend. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public PollEmptyResult membersRemoveJobStatusGet(String asyncJobId) throws PollErrorException, DbxException
membersRemove(UserSelectorArg)
, use this to poll
the status of the asynchronous request. Permission : Team member
managementasyncJobId
- Id of the asynchronous job. This is the value of a
response returned from the method that launched the job. Must have
length of at least 1 and not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.PollErrorException
DbxException
public void membersSendWelcomeEmail(UserSelectorArg arg) throws MembersSendWelcomeErrorException, DbxException
arg
- Argument for selecting a single user, either by
team_member_id, external_id or email.MembersSendWelcomeErrorException
DbxException
public MembersSetPermissionsResult membersSetAdminPermissions(UserSelectorArg user, AdminTier newRole) throws MembersSetPermissionsErrorException, DbxException
user
- Identity of user whose role will be set. Must not be null
.newRole
- The new role of the member. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.MembersSetPermissionsErrorException
DbxException
public TeamMemberInfo membersSetProfile(UserSelectorArg user) throws MembersSetProfileErrorException, DbxException
user
- Identity of user whose profile will be set. Must not be
null
.IllegalArgumentException
- If any argument does not meet its
preconditions.MembersSetProfileErrorException
DbxException
public MembersSetProfileBuilder membersSetProfileBuilder(UserSelectorArg user)
user
- Identity of user whose profile will be set. Must not be
null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public void membersSuspend(UserSelectorArg user) throws MembersSuspendErrorException, DbxException
The wipeData
request parameter will default to true
(see membersSuspend(UserSelectorArg,boolean)
).
user
- Identity of user to remove/suspend. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.MembersSuspendErrorException
DbxException
public void membersSuspend(UserSelectorArg user, boolean wipeData) throws MembersSuspendErrorException, DbxException
user
- Identity of user to remove/suspend. Must not be null
.wipeData
- If provided, controls if the user's data will be deleted
on their linked devices.IllegalArgumentException
- If any argument does not meet its
preconditions.MembersSuspendErrorException
DbxException
public void membersUnsuspend(UserSelectorArg user) throws MembersUnsuspendErrorException, DbxException
user
- Identity of user to unsuspend. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.MembersUnsuspendErrorException
DbxException
public GetActivityReport reportsGetActivity() throws DateRangeErrorException, DbxException
DateRangeErrorException
DbxException
public ReportsGetActivityBuilder reportsGetActivityBuilder()
public GetDevicesReport reportsGetDevices() throws DateRangeErrorException, DbxException
DateRangeErrorException
DbxException
public ReportsGetDevicesBuilder reportsGetDevicesBuilder()
public GetMembershipReport reportsGetMembership() throws DateRangeErrorException, DbxException
DateRangeErrorException
DbxException
public ReportsGetMembershipBuilder reportsGetMembershipBuilder()
public GetStorageReport reportsGetStorage() throws DateRangeErrorException, DbxException
DateRangeErrorException
DbxException
public ReportsGetStorageBuilder reportsGetStorageBuilder()