update_user
async
¶
update_user(
user_id: IdType,
*,
config_overrides: Optional[AsyncWorkDocsClientConfig] = None,
authentication_token: Optional[AuthenticationHeaderType] = None,
given_name: Optional[UserAttributeValueType] = None,
surname: Optional[UserAttributeValueType] = None,
type: Optional[UserType] = None,
storage_rule: Optional[StorageRuleType] = None,
time_zone_id: Optional[TimeZoneIdType] = None,
locale: Optional[LocaleType] = None,
grant_poweruser_privileges: Optional[BooleanEnumType] = None,
) -> UpdateUserResponse
Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.
Parameters:
-
authentication_token(Optional[AuthenticationHeaderType], default:None) –Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
-
user_id(IdType) –The ID of the user.
-
given_name(Optional[UserAttributeValueType], default:None) –The given name of the user.
-
surname(Optional[UserAttributeValueType], default:None) –The surname of the user.
-
type(Optional[UserType], default:None) –The type of the user.
-
storage_rule(Optional[StorageRuleType], default:None) –The amount of storage for the user.
-
time_zone_id(Optional[TimeZoneIdType], default:None) –The time zone ID of the user.
-
locale(Optional[LocaleType], default:None) –The locale of the user.
-
grant_poweruser_privileges(Optional[BooleanEnumType], default:None) –Boolean value to determine whether the user is granted Power user privileges.
Raises:
-
DeactivatingLastSystemUserException–The last user in the organization is being deactivated.
-
EntityNotExistsException–The resource does not exist.
-
FailedDependencyException–The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.
-
IllegalUserStateException–The user is undergoing transfer of ownership.
-
InvalidArgumentException–The pagination marker or limit fields are not valid.
-
ProhibitedStateException–The specified document version is not in the INITIALIZED state.
-
ServiceUnavailableException–One or more of the dependencies is unavailable.
-
UnauthorizedOperationException–The operation is not permitted.
-
UnauthorizedResourceAccessException–The caller does not have access to perform the action on the resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workdocs/_services/async_work_docs.py
4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 | |