Skip to main content

group_profiles

Creates, updates, deletes or gets a group_profile resource or lists group_profiles in a region

Overview

Namegroup_profiles
TypeResource
DescriptionGroup profiles represent groups of Amazon DataZone users. Groups can be manually created, or mapped to Active Directory groups of enterprise customers. In Amazon DataZone, groups serve two purposes. First, a group can map to a team of users in the organizational chart, and thus reduce the administrative work of a Amazon DataZone project owner when there are new employees joining or leaving a team. Second, corporate administrators use Active Directory groups to manage and update user statuses and so Amazon DataZone domain administrators can use these group memberships to implement Amazon DataZone domain policies.
Idaws.datazone.group_profiles

Fields

NameDatatypeDescription
domain_idstringThe identifier of the Amazon DataZone domain in which the group profile is created.
domain_identifierstringThe identifier of the Amazon DataZone domain in which the group profile would be created.
group_identifierstringThe ID of the group.
group_namestringThe group-name of the Group Profile.
idstringThe ID of the Amazon DataZone group profile.
statusstringThe status of the group profile.
regionstringAWS region.

Methods

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

SELECT examples

Gets all group_profiles in a region.

SELECT
region,
domain_id,
domain_identifier,
group_identifier,
group_name,
id,
status
FROM aws.datazone.group_profiles
WHERE region = 'us-east-1';

Gets all properties from an individual group_profile.

SELECT
region,
domain_id,
domain_identifier,
group_identifier,
group_name,
id,
status
FROM aws.datazone.group_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 group_profile resource, using stack-deploy.

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

DELETE example

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

Permissions

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

Create

datazone:CreateGroupProfile,
datazone:GetGroupProfile,
datazone:UpdateGroupProfile,
sso:ListProfiles,
sso:GetProfile,
sso:AssociateProfile,
sso:DisassociateProfile

Read

datazone:GetGroupProfile

Update

datazone:UpdateGroupProfile,
datazone:GetGroupProfile,
sso:ListProfiles,
sso:GetProfile,
sso:AssociateProfile,
sso:DisassociateProfile

Delete

datazone:DeleteGroupProfile,
datazone:GetGroupProfile,
datazone:UpdateGroupProfile,
sso:ListProfiles,
sso:GetProfile,
sso:AssociateProfile,
sso:DisassociateProfile

List

datazone:SearchGroupProfiles