reset_password
¶
reset_password(
organization_id: OrganizationId,
user_id: WorkMailIdentifier,
password: Password,
*,
config_overrides: Optional[WorkMailClientConfig] = None,
) -> ResetPasswordResponse
Allows the administrator to reset the password for a user.
Parameters:
-
organization_id(OrganizationId) –The identifier of the organization that contains the user for which the password is reset.
-
user_id(WorkMailIdentifier) –The identifier of the user for whom the password is reset.
-
password(Password) –The new password for the user.
Raises:
-
DirectoryServiceAuthenticationFailedException–The directory service doesn't recognize the credentials supplied by WorkMail.
-
DirectoryUnavailableException–The directory is unavailable. It might be located in another Region or deleted.
-
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.
-
InvalidPasswordException–The supplied password doesn't match the minimum security constraints, such as length or use of special characters.
-
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.
-
UnsupportedOperationException–You can't perform a write operation against a read-only directory.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workmail/_services/work_mail.py
5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 | |