Skip to main content

user_profiles

Creates, updates, deletes or gets an user_profile resource or lists user_profiles in a region

Overview

Nameuser_profiles
TypeResource
DescriptionA user profile represents Amazon DataZone users. Amazon DataZone supports both IAM roles and SSO identities to interact with the Amazon DataZone Management Console and the data portal for different purposes. Domain administrators use IAM roles to perform the initial administrative domain-related work in the Amazon DataZone Management Console, including creating new Amazon DataZone domains, configuring metadata form types, and implementing policies. Data workers use their SSO corporate identities via Identity Center to log into the Amazon DataZone Data Portal and access projects where they have memberships.
Idawscc.datazone.user_profiles

Fields

NameDatatypeDescription
detailsobject
domain_idstringThe identifier of the Amazon DataZone domain in which the user profile is created.
domain_identifierstringThe identifier of the Amazon DataZone domain in which the user profile would be created.
idstringThe ID of the Amazon DataZone user profile.
statusstringThe status of the user profile.
typestringThe type of the user profile.
user_identifierstringThe ID of the user.
user_typestringThe type of the user.
regionstringAWS region.

For more information, see AWS::DataZone::UserProfile.

Methods

NameResourceAccessible byRequired Params
create_resourceuser_profilesINSERTDomainIdentifier, UserIdentifier, region
delete_resourceuser_profilesDELETEIdentifier, region
update_resourceuser_profilesUPDATEIdentifier, PatchDocument, region
list_resourcesuser_profiles_list_onlySELECTregion
get_resourceuser_profilesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual user_profile.

SELECT
region,
details,
domain_id,
domain_identifier,
id,
status,
type,
user_identifier,
user_type
FROM awscc.datazone.user_profiles
WHERE
region = 'us-east-1' AND
Identifier = '{{ domain_id }}|{{ id }}';

INSERT example

Use the following StackQL query and manifest file to create a new user_profile resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.datazone.user_profiles (
DomainIdentifier,
UserIdentifier,
region
)
SELECT
'{{ domain_identifier }}',
'{{ user_identifier }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a user_profile resource, using stack-deploy.

/*+ update */
UPDATE awscc.datazone.user_profiles
SET PatchDocument = string('{{ {
"Status": status
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_id }}|{{ id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.datazone.user_profiles
WHERE
Identifier = '{{ domain_id }}|{{ id }}' AND
region = 'us-east-1';

Permissions

To operate on the user_profiles resource, the following permissions are required:

datazone:CreateUserProfile,
datazone:GetUserProfile,
datazone:UpdateUserProfile,
datazone:GetDomain,
sso:ListProfiles,
sso:GetProfile,
sso:AssociateProfile,
sso:DisassociateProfile,
iam:GetRole,
iam:GetUser