create_user
async
¶
create_user(
identity_store_id: IdentityStoreId,
*,
config_overrides: Optional[AsyncidentitystoreClientConfig] = None,
user_name: Optional[UserName] = None,
name: Optional[Name] = None,
display_name: Optional[SensitiveStringType] = None,
nick_name: Optional[SensitiveStringType] = None,
profile_url: Optional[SensitiveStringType] = None,
emails: Optional[Emails] = None,
addresses: Optional[Addresses] = None,
phone_numbers: Optional[PhoneNumbers] = None,
user_type: Optional[SensitiveStringType] = None,
title: Optional[SensitiveStringType] = None,
preferred_language: Optional[SensitiveStringType] = None,
locale: Optional[SensitiveStringType] = None,
timezone: Optional[SensitiveStringType] = None,
photos: Optional[Photos] = None,
website: Optional[SensitiveStringType] = None,
birthdate: Optional[SensitiveStringType] = None,
roles: Optional[Roles] = None,
extensions: Optional[Extensions] = None,
) -> CreateUserResponse
Creates a user within the specified identity store.
Parameters:
-
identity_store_id(IdentityStoreId) –The globally unique identifier for the identity store.
You can specify the identity store by ID or by Amazon Resource Name (ARN). For example, identity store ID
d-1234567890or identity store ARNarn:aws:identitystore::111122223333:identitystore/d-1234567890. -
user_name(Optional[UserName], default:None) –A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.
AdministratorandAWSAdministratorsare reserved names and can't be used for users or groups. -
name(Optional[Name], default:None) –An object containing the name of the user. When used in IAM Identity Center, this parameter is required.
-
display_name(Optional[SensitiveStringType], default:None) –A string containing the name of the user. This value is typically formatted for display when the user is referenced. For example, "John Doe." When used in IAM Identity Center, this parameter is required.
-
nick_name(Optional[SensitiveStringType], default:None) –A string containing an alternate name for the user.
-
profile_url(Optional[SensitiveStringType], default:None) –A string containing a URL that might be associated with the user.
-
emails(Optional[Emails], default:None) –A list of
Emailobjects containing email addresses associated with the user. -
addresses(Optional[Addresses], default:None) –A list of
Addressobjects containing addresses associated with the user. -
phone_numbers(Optional[PhoneNumbers], default:None) –A list of
PhoneNumberobjects containing phone numbers associated with the user. -
user_type(Optional[SensitiveStringType], default:None) –A string indicating the type of user. Possible values are left unspecified. The value can vary based on your specific use case.
-
title(Optional[SensitiveStringType], default:None) –A string containing the title of the user. Possible values are left unspecified. The value can vary based on your specific use case.
-
preferred_language(Optional[SensitiveStringType], default:None) –A string containing the preferred language of the user. For example, "American English" or "en-us."
-
locale(Optional[SensitiveStringType], default:None) –A string containing the geographical region or location of the user.
-
timezone(Optional[SensitiveStringType], default:None) –A string containing the time zone of the user.
-
photos(Optional[Photos], default:None) –A list of photos associated with the user. You can add up to 3 photos per user. Each photo can include a value, type, display name, and primary designation.
-
website(Optional[SensitiveStringType], default:None) –The user's personal website or blog URL. This field allows users to provide a link to their personal or professional website.
-
birthdate(Optional[SensitiveStringType], default:None) –The user's birthdate in YYYY-MM-DD format. This field supports standard date format for storing personal information.
-
roles(Optional[Roles], default:None) –A list of
Roleobjects containing roles associated with the user. -
extensions(Optional[Extensions], default:None) –A map with additional attribute extensions for the user. Each map key corresponds to an extension name, while map values represent extension data in
Documenttype (not supported by Java V1, Go V1 and older versions of the CLI).aws:identitystore:enterpriseis the only supported extension name.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure with an internal server.
-
ThrottlingException–Indicates that the principal has crossed the throttling limits of the API operations.
-
ConflictException–This request cannot be completed for one of the following reasons:
-
Performing the requested operation would violate an existing uniqueness claim in the identity store. Resolve the conflict before retrying this request.
-
The requested resource was being concurrently modified by another request.
-
-
ResourceNotFoundException–Indicates that a requested resource is not found.
-
ServiceQuotaExceededException–The request would cause the number of users or groups in the identity store to exceed the maximum allowed.
-
ValidationException–The request failed because it contains a syntax error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_identitystore/_services/async_identitystore.py
1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 | |