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.
Idaws.datazone.user_profiles

Fields

NameDatatypeDescription
detailsundefined
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.

Methods

NameAccessible byRequired Params
create_resourceINSERTDomainIdentifier, UserIdentifier, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all user_profiles in a region.

SELECT
region,
details,
domain_id,
domain_identifier,
id,
status,
type,
user_identifier,
user_type
FROM aws.datazone.user_profiles
WHERE region = 'us-east-1';

Gets all properties from an individual user_profile.

SELECT
region,
details,
domain_id,
domain_identifier,
id,
status,
type,
user_identifier,
user_type
FROM aws.datazone.user_profiles
WHERE region = 'us-east-1' AND data__Identifier = '<DomainId>|<Id>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.datazone.user_profiles
WHERE data__Identifier = '<DomainId|Id>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

datazone:GetUserProfile

Update

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

Delete

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

List

datazone:SearchUserProfiles