简体   繁体   中英

Record read access based on field value in Dynamics CRM 2011

Entity has a custom field based on which, some security roles should have access to records of that type and some should not.

Javascript can be used to close form after checking roles. But I'm looking for back end solution that will disabled access to this records in workflows and searches too.

For example, product should viewable by everyone if manufacturer is our company and only by Competitor Products Specialist if other.

You might be able to write a plugin that would automatically share the record with the appropriate Users/Teams. When somebody updates that field, the plugin would run and share/unshare the record according to your business logic.

Disclaimer: I haven't actually tried this before, and there may be performance issues if you have lots of records (and therefore lots of sharing records).

我最终编写了适用于pre-Retrieve事件的插件,并通过按字段添加附加过滤器来修改检索查询。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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