deleteMailboxPermissions method
Deletes permissions granted to a member (user or group).
May throw EntityNotFoundException. May throw EntityStateException. May throw InvalidParameterException. May throw OrganizationNotFoundException. May throw OrganizationStateException.
Parameter entityId
:
The identifier of the member (user or group) that owns the mailbox.
Parameter granteeId
:
The identifier of the member (user or group) for which to delete granted
permissions.
Parameter organizationId
:
The identifier of the organization under which the member (user or group)
exists.
Implementation
Future<void> deleteMailboxPermissions({
required String entityId,
required String granteeId,
required String organizationId,
}) async {
ArgumentError.checkNotNull(entityId, 'entityId');
_s.validateStringLength(
'entityId',
entityId,
12,
256,
isRequired: true,
);
ArgumentError.checkNotNull(granteeId, 'granteeId');
_s.validateStringLength(
'granteeId',
granteeId,
12,
256,
isRequired: true,
);
ArgumentError.checkNotNull(organizationId, 'organizationId');
_s.validateStringLength(
'organizationId',
organizationId,
34,
34,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkMailService.DeleteMailboxPermissions'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'EntityId': entityId,
'GranteeId': granteeId,
'OrganizationId': organizationId,
},
);
}