Groups
Was this helpful?
Was this helpful?
Your Emporix tenant's name.
Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$
Unique identifier of a group, generated when the group is created.
List of language codes acceptable for the response. You can specify factors that indicate which language should be retrieved if the one with a higher factor was not found in the localized fields. If the value is specified, then it must be present in the tenant configuration.
*
, all localized fields are retrieved as maps of translations, where the keys are language codes and values are the fields in their respective languages.Deletes a specified group.
Important: If you want to delete a group that has users assigned to it, you need to set the forceDelete
query parameter to true
. In this case, all user group assignments will be deleted as well. The force flag requires the iam.assignment_manage
scope.
iam.group_manage
iam.assignment_manage
if forceDelete is usedNote: The iam.assignment_manage
scope is only required if you want to delete a group that has users assigned to it.
Your Emporix tenant's name.
Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$
Unique identifier of a group, generated when the group is created.
If set to true
and the group has users assigned to it, both the group and the group assignments will be deleted.
Important: To set this parameter to true, you must request an access token with the iam.assignment_manage
scope.
If set to false
or not specified and the group has users assigned to it, the endpoint will respond with the 400 error.
false
Example: false
No content
Your Emporix tenant's name.
Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$
Unique identifier of a group, generated when the group is created.
Page number to be retrieved. The number of the first page is 1.
1
Number of items to be retrieved per page.
60
Adds expanded resource and/or role objects to the response.
role,resource
Possible values: Flag indicating whether the total number of retrieved items should be returned.
false
Example: true
List of language codes acceptable for the response. You can specify factors that indicate which language should be retrieved if the one with a higher factor was not found in the localized fields. If the value is specified, then it must be present in the tenant configuration.
*
, all localized fields are retrieved as maps of translations, where the keys are language codes and values are the fields in their respective languages.Your Emporix tenant's name.
Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$
Unique identifier of a group, generated when the group is created.
Page number to be retrieved. The number of the first page is 1.
1
Number of items to be retrieved per page.
60
Flag indicating whether the total number of retrieved items should be returned.
false
Example: true
Your Emporix tenant's name.
Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$
Unique identifier of a group, generated when the group is created.
No content
Your Emporix tenant's name.
Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$
Page number to be retrieved. The number of the first page is 1.
1
Number of items to be retrieved per page.
60
List of properties used to sort the results, separated by colons. The order of properties indicates their priority in sorting.
Possible values:
{fieldName}
{fieldName}:asc
{fieldName}:desc
Note: If you want to sort the results by localized properties, the possible values are as follows:
{fieldName}.{language}
{fieldName}.{language}:asc
{fieldName}.{language}:desc
If the sorting direction is not specified, the fields are sorted in ascending order.
Search by the name of a given resource. The value will be conformed against all of the specified accepted languages.
Standard query parameter used to search for specific values.
q=id:31065d5b-b62e
, where id
is the field name and 31065d5b-b62e
is its required value.q=name.en:T-s
where name
is the name of the field, en
is a language code and T-s
is a required value of this field. This query works only for localized fields, which are stored in a Map format where key
is a language code and value
is translation to particular language. + Searching for items by date property. All numer-based property queries are valid also for dates. In that case the date should be placed within double quotes: q=metadata.createdAt:(>="2021-05-18T07:27:27.455Z" AND <"2021-05-20T07:27:27.455Z")
+ Searching for items with non existing or empty property: q=name.en:null
where name.en
is a name of fields that has value null
. + Searching for items with existing property: q=attributes:exists
where attributes
is a name of field that has non null
value. + Searching for items by multiple specific values: q=id:(5c3325baa9812100098ff48f,5c3325d1a9812100098ff494)
where id
is name of field and strings within a bracket are it''s required value. + Searching for items by multiple fields: q=id:5c3325baa9812100098ff48f name.en:T-s
where id
and ''name.en'' are the names of fields. All documents that contain given values of these fields are returned. Multiple fields separated by space can be specified. Multiple values for each field can be also specified in a format presented above. + Searching for items with string fields conforming to a regex: q=name.en:~ABCD12
or q=name.en:(~AB CD)
- in case of searching for strings with space, where name
is the name of field and ABCD12
or AB CD
is it''s querying regex.'id:in(exampleId1,exampleId2)
Search by the description of the the given resource, it will be conformed against all of the specified accepted-languages.
Search by given resources that contain the metadata.modifiedAt
date field with a date later than the specified value. The format is as follows: ''yyyy-MM-dd''.
2022-01-01
Search by the group user type. Possible values are: CUSTOMER
and EMPLOYEE
List of language codes acceptable for the response. You can specify factors that indicate which language should be retrieved if the one with a higher factor was not found in the localized fields. If the value is specified, then it must be present in the tenant configuration.
*
, all localized fields are retrieved as maps of translations, where the keys are language codes and values are the fields in their respective languages.Flag indicating whether the total number of retrieved items should be returned.
false
Example: true
Your Emporix tenant's name.
Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$
The Content-Language request HTTP header defines language(s) of the payload.
de
Custom group's identifier. If not provided, it is automatically generated
Access control unique identifiers associated with this group. Required to perform the request.
The type of the group. Possible values: 'CUSTOMER', 'EMPLOYEE'. Default value 'EMPLOYEE' if not provided
EMPLOYEE
Example: CUSTOMER
Possible values: Template unique identifier associated with this group. Required to perform the request.
Your Emporix tenant's name.
Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$
Unique identifier of a group, generated when the group is created.
The Content-Language request HTTP header defines language(s) of the payload.
de
Access control unique identifiers associated with this group. Required to perform the request.
The type of the group. Possible values: 'CUSTOMER', 'EMPLOYEE'. Default value 'EMPLOYEE' if not provided
EMPLOYEE
Example: CUSTOMER
Possible values: Template unique identifier associated with this group. Required to perform the request.
Assigns a user to a specified group. The user will gain all access controls (scopes) specified for this group.
iam.assignment_create_own
scope allows customer to assign a user to a specified group only if the user is assigned to the same company.
iam.assignment_manage
iam.assignment_create_own
Your Emporix tenant's name.
Note: The tenant name should always be written in lowercase.
^[a-z][a-z0-9]+$
Unique identifier of a group, generated when the group is created.
User unique identifier generated when the user is created. Might be customer ID or Management Dashboard user ID.
Assignment type, possible values: CUSTOMER, EMPLOYEE
EMPLOYEE
Example: CUSTOMER
Possible values: