查询 MS CRM 数据库没有 return 结果

Query to MS CRM Database does not return results

我有一个查询可以根据设定的条件获取业务部门的帐户。当使用一个业务单位时,查询会找到并返回结果。 运行同样的代码,只改变了业务单位,运行不同的业务单位,返回的结果是空的。

如果我 运行 HeidiSQL 中的这个查询对两个业务部门都有效。

这个问题的另一个特点是在糟糕的业务部门,客户服务代表无法获得结果,而客户服务主管可以。在好的业务单元,两者都能得到结果。

这使我认为存在安全问题。然而,我比较了两个业务部门的团队和角色,它们是匹配的。

是否还有其他我忽略的东西可能会阻止团队从数据库中获取数据。

发件人:https://andrewbschultz.com/2011/08/09/business-units-bus-and-security-roles-in-microsoft-dynamics-crm-2011-solution-exports/

Without BUs, the following security configurations would be possible:

  1. A user could have access to his own CRM records

  2. A user could have access to all CRM records

With BUs, the following additional security configurations are possible:

  1. A user can have access to all records owned by users in his business unit

  2. A user can have access to all records owned by users in his own and any child business units

我的理解是,如果记录由 BU1 的用户所有,那么 BU2 的用户将无法访问它们,直到所有权转移给 BU2 的用户。 为了让两个 BU 中的用户访问相同的记录,您必须与 BU2 中的至少一个(或可能是所有)用户共享所有这些记录。