Skip to main content

identity_group_users

Creates, updates, deletes, gets or lists an identity_group_users resource.

Overview​

Nameidentity_group_users
TypeResource
Idovh.me.identity_group_users

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
valuestring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectgroupList the users of this group
createinsertgroupAdd a user to the group
deletedeletegroup, userRemove a user from the group

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
groupstringGroup
userstringUser

SELECT examples​

List the users of this group

SELECT
value
FROM ovh.me.identity_group_users
WHERE group = '{{ group }}' -- required
;

INSERT examples​

Add a user to the group

INSERT INTO ovh.me.identity_group_users (
user,
group
)
SELECT
'{{ user }}',
'{{ group }}'
;

DELETE examples​

Remove a user from the group

DELETE FROM ovh.me.identity_group_users
WHERE group = '{{ group }}' --required
AND user = '{{ user }}' --required
;