put_mobile_device_access_override
¶
put_mobile_device_access_override(
organization_id: OrganizationId,
user_id: EntityIdentifier,
device_id: DeviceId,
effect: MobileDeviceAccessRuleEffect,
*,
config_overrides: Optional[WorkMailClientConfig] = None,
description: Optional[MobileDeviceAccessRuleDescription] = None,
) -> PutMobileDeviceAccessOverrideResponse
Creates or updates a mobile device access override for the given WorkMail organization, user, and device.
Parameters:
-
organization_id(OrganizationId) –Identifies the WorkMail organization for which you create the override.
-
user_id(EntityIdentifier) –The WorkMail user for which you create the override. Accepts the following types of user identities:
-
User ID:
12345678-1234-1234-1234-123456789012orS-1-1-12-1234567890-123456789-123456789-1234 -
Email address:
[email protected] -
User name:
user
-
-
device_id(DeviceId) –The mobile device for which you create the override.
DeviceIdis case insensitive. -
effect(MobileDeviceAccessRuleEffect) –The effect of the override,
ALLOWorDENY. -
description(Optional[MobileDeviceAccessRuleDescription], default:None) –A description of the override.
Raises:
-
EntityNotFoundException–The identifier supplied for the user, group, or resource does not exist in your organization.
-
EntityStateException–You are performing an operation on a user, group, or resource that isn't in the expected state, such as trying to delete an active user.
-
InvalidParameterException–One or more of the input parameters don't match the service's restrictions.
-
OrganizationNotFoundException–An operation received a valid organization identifier that either doesn't belong or exist in the system.
-
OrganizationStateException–The organization must have a valid state to perform certain operations on the organization or its members.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workmail/_services/work_mail.py
5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 | |