describe_user
¶
describe_user(
identity_store_id: IdentityStoreId,
user_id: ResourceId,
*,
config_overrides: Optional[identitystoreClientConfig] = None,
extensions: Optional[ExtensionNames] = None,
) -> DescribeUserResponse
Retrieves the user metadata and attributes from the UserId in an identity store.
If you have access to a member account, you can use this API operation from the member account. For more information, see Limiting access to the identity store from member accounts in the IAM Identity Center User Guide.
Parameters:
-
identity_store_id(IdentityStoreId) –The globally unique identifier for the identity store, such as
d-1234567890. In this example,d-is a fixed prefix, and1234567890is a randomly generated string that contains numbers and lower case letters. This value is generated at the time that a new identity store is created.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_id(ResourceId) –The identifier for a user in the identity store.
You can specify the user by ID or by Amazon Resource Name (ARN). For example, user ID
a1b2c3d4-5678-90ab-cdef-EXAMPLE11111or user ARNarn:aws:identitystore:::user/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111. -
extensions(Optional[ExtensionNames], default:None) –A collection of extension names indicating what extensions the service should retrieve alongside other user attributes.
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.
-
ResourceNotFoundException–Indicates that a requested resource is not found.
-
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/identitystore.py
1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 | |