Coveo, Microsoft Dynamics 365, and Security
Coveo Cloud uses a permission model capable of reproducing any flexible security model to make sure that your data is at least as secure in your Coveo index as it is in Microsoft Dynamics 365 (see Coveo Cloud V2 Management of Security Identities and Item Permissions). Whether they are browsing content directly in Microsoft Dynamics 365 or searching it with Coveo, your users have access to the same items, as items not matching a user’s permissions are not included in their search results. Thus, they cannot use Coveo to access sensitive information that they are not supposed to see, such as coworkers’ expense accounts or confidential information handled by other teams.
Item Permission Model
Shared: groups or users with whom the item is shared.
Roles: groups or users who typically have access to the items due to their role.
Each of these levels includes two permission sets of allowed groups or users:
[Level] Set: groups or users who have access to the item.
Entity Type Set: groups or users who typically have access to this entity type.
In Microsoft Dynamics 365, the concept of denied user, i.e., a user that is explicitly forbidden to access an item, does not exist. Users are either allowed to access an item or unknown to the item permission model.
To resolve the permission model of an item and determine whether it can appear in the search results for a specific user, Coveo Cloud analyzes the item permissions as follows:
For each permission level, Coveo Cloud goes through each permission set:
If the user is allowed to access the item in all sets, the user can see the item. Other permission levels are ignored.
If the user is unknown in some or all sets, the next permission level is checked.
If the user is unknown in all permission levels, the user cannot see the item.
In order for Coveo to recognize users from Microsoft Dynamics 365, each group and user must be associated to a security identity represented by their primary email, which is then used to determine whether a user can access an item. These identities are stored in the Coveo security identity cache. At query time, the item permissions are compared to the identity in the cache to determine whether the user is allowed to access the item (see Security Identities).
Once a day, Coveo Cloud refers to the Microsoft Dynamics 365 security provider to update the association of groups and users to their emails. Thus, any change made to the security groups or users in Dynamics 365 will be effective in Coveo for Microsoft Dynamics 365 at most 24 hours later. If you want your changes to be effective immediately, you can manually launch a security identity refresh (see Refresh Tab).
They API key is a basic authentication method used to secure interactions between Coveo for Microsoft Dynamics 365 and the Coveo Search API (see API Key Authentication). The key is included in each query and it identifies the API calls as legitimate.
The API key appears in the
CoveoConfiguration Microsoft Dynamics 365 entity, so it is available for Coveo for Microsoft Dynamics 365 to use. However, for your Dynamics 365 content to remain secured, this key should not be shared with anyone, and the permission to read the
CoveoConfiguration entity should only be given to administrators.