Add or update a single alias
Add or update a single alias
An alias is a security identity relationship typically defined between two user entities across different security identity providers to indicate that these entities both correspond to the same person in distinct secured enterprise system.
You can manage aliases in the security identity provider of a Push source that indexes the system permissions ("sourceVisibility": "SECURED"
) by defining a security identity with a mappings
array.
Use the Add or update an alias operation to create or modify a user alias.
You should never use this operation repetitively to add or update many aliases in security identity provider (that is, perform a large-scale security identity update). If that’s what you need to do, you should use the batch operation instead. |
Request template
Request definition
|
Request body
|
Note
For legacy reasons, the request path of this operation uses the word permissions instead of identities. While those two concepts are related, they have entirely different meanings. Remember that this operation actually allows you to interact with security identities (not item permissions). |
In the request path:
-
Replace
<MyOrganizationId>
with the ID of the target Coveo organization. -
Replace
<MySecurityIdentityProviderId>
with the ID of the target security identity provider.
In the Authorization
HTTP header:
-
Replace
<MyAccessToken>
with an access token that grants the Organization - View and Security identity providers - View/Edit privileges in the target Coveo organization. See Create an API key, Get the privileges of an access token, and Get your Coveo access token for details.
In the request body (see Security Identity Models - MappedIdentityBody):
-
Replace
<MyAlias>
with the definition of the user alias you’re pushing.You must make consistent use of the
wellKnowns
parameter across different push API calls. In other words, if you’re adding or updating a single security identity, make sure that the samewellKnowns
are also sent when using that call to prevent involuntary disassociation of granted identities from their groups. This also applies to the repeated use of any given API call.
Sample request
The following example shows how to add or update a single alias relationship and assigning a granted identity to this alias.
Request definition
|
Request body
|
Successful response - 202 Accepted
|