13.06.2013, 23:14 | #1 |
Участник
|
Microsoft Dynamics CRM Team Blog: Using Teams to Solve Complex Record-Sharing Scenarios
Источник: http://blogs.msdn.com/b/crm/archive/...scenarios.aspx
============== I had two enterprise customers this week who both had similar security requirements, and both sets of requirements were solved with a similar pattern that I thought you might find useful. Imagine your company organizes itself into different groups, and the work of each group needs to remain segregated from the work of the other groups. So you configure your CRM organization with three business units — let’s called them Red, Blue and Green — each under the root parent business unit. And you configure the security roles with business unit-level privileges. So far, so good. But now there is a requirement that some users in the Red business unit need to be able to work with records in the Green business unit, but not the Blue business unit. And some users in the Blue business unit need to be able to work with records in the Red business unit, but not the Green business unit. But no one is allowed to work with records in all three business units. What now? Teams for Owning and Sharing Records This is where teams come in. CRM creates and manages a team for each business unit. These business unit teams have the same name as the business unit. Members of the business teams is managed by the CRM platform when we add or remove users from the business unit, so there’s not much we can do with the business unit teams. To solve our challenge, we’re going to create another team for each business unit own the business unit’s records share them with selected users from other teams. So we now have six teams:
Managing Record Ownership with Teams Instead of records being owned by users, in this design we’re going to have records owned by custom teams instead. Team-ownership of records has several benefits:
I recommend using a plugin to reassign all your sensitive records to the appropriate record-owning team. You could use a workflow, but I prefer using a plugin. The plugin fires as soon as the record is created and uses some record-based logic to determine which record-owing team to assign the record to. For example, if Red represents a sales region, then opportunities would be reassigned based on the sales region of the potential customer. It’s a good idea to use configuration data rather than hard-code the teams in the plug-in; for example by adding a team lookup to the sales region records. This plugin is critical. We’re going to have Red users working with Green records. We need to use the appropriate business logic to ensure that if, for example, a Red user creates a quote on a Green opportunity that the quote is owned by the Green Shared team and not the Red user, otherwise Green users won’t be able to see the quote. We’re also going to reassign all the existing user-owned records and assign them to the record-owning teams instead. You could achieve this programmatically if you have a large number of existing records to reassign. Optionally, you can modify any views that are based on users owning records such as the My Accounts, My Contacts, My Cases and My Opportunities system views. For example, you can modify the views to filter on the Created By user, or use a custom user lookup on each record instead of the Owner field. Step one is complete. All our sensitive records are now owned by a custom, record-owning team in the appropriate business unit. Manage User Access by Using Teams The next step in our design involves adding users to our record-sharing teams. Users in the Red business unit don’t need to be added to the Red Sharing team because the users and the team are already in the same business unit and their security role gives them privileges to work with records owned by users or teams in their business unit. So all we need to do is add the appropriate users from the Red business unit to the Green Sharing team, and some users from the Blue business unit to the Red Sharing team. Hey presto! and we’re done. This design has two big advantages over the more common design pattern of simply sharing records with another user or team:
Neil Benson Microsoft Dynamics CRM MVP Источник: http://blogs.msdn.com/b/crm/archive/...scenarios.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|