简体   繁体   English

如何将子业务部门的安全角色从源 MS-CRM 迁移到目标 MS-CRM?

[英]How to migrate Security Roles of child Business Unit from source MS-CRM to destination MS-CRM?

I have few Business Units which are child to parent Business Unit and few roles created under child Business Units.我几乎没有父业务单位的子业务单位,也没有在子业务单位下创建的角色。 For example: Two Business Units: B1 and B2 Two roles: R1 and R2 R1 is under B1 Business Unit which means it is not a part of B2 and R2 is under B1 which means R2 is not a part of B1.例如: 两个业务部门:B1 和 B2 两个角色:R1 和 R2 R1 在 B1 业务部门下,这意味着它不属于 B2,而 R2 在 B1 下,这意味着 R2 不在 B1 的一部分。

I migrated Business Units from Source CRM to Destination CRM with same Guid values.我将业务单位从源 CRM 迁移到具有相同 Guid 值的目标 CRM。 Now i want to migrate roles with privileges into Destination CRM.现在我想将具有特权的角色迁移到目标 CRM 中。

I tried export and import from source to destination.我试过从源到目的地的导出和导入。 It created Role and all privileges are empty.它创建了角色,所有权限都是空的。 Even if i create Role from C# Code privileges are empty.即使我从 C# 代码权限创建角色也是空的。 Can any one help me please in migrating Security Roles with Privileges?任何人都可以帮助我迁移具有特权的安全角色吗?

Thanks in advance提前致谢

Best practice is to create security roles at the root Business Unit (BU) level.最佳实践是在根业务单位 (BU) 级别创建安全角色。 When doing this, you can simply migrate the security role via solutions.这样做时,您可以简单地通过解决方案迁移安全角色。 In most instances , you can set up the security role such that it does apply to all BUs correctly without having to create it in only certain BUs and not others.在大多数情况下,您可以设置安全角色,使其正确应用于所有 BU,而不必仅在某些 BU 而不是其他 BU 中创建它。
All you have to do is to recreate the security role at the root level and this issue should fix itself.您所要做的就是在根级别重新创建安全角色,这个问题应该会自行解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM