Object-based security
Object-based security applies to individual instances of entities and is
Provided by using access rights. The relationship between an access right and
Privilege is that access rights apply only after privileges have taken effect.
For example, if users do not have the privilege to read accounts, they will be
Unable to read any account, regardless of the access rights another user might
Grant them to a specific account through sharing.
Access rights
Access rights
An access right is granted to a user for a participant entity instance.
Following table lists the descriptions for these access rights.
| Access Right |
Enumeration name |
Description |
| Read |
Readaccess |
Controls whether the user can read an entity instance. |
| Write |
Writeaccess |
Controls whether the user can update an entity
Instance. |
| Assign |
Assignaccess |
Controls whether the user can assign an entity instance
Another user. |
| Append |
Appendaccess |
Controls whether the user can attach another entity instance
The specified entity instance. The append and append to access rights actually
Work in combination with one another. Every time that a user attaches one entity
Instance to another, the user must have both rights. For example, when you
Attach a note to a case, you must have the Append access right on the note and
The append to access right on the case for the Operation to work. |
| Append |
Appendtoaccess |
Controls whether the user can append the entity instance in
Question to another entity instance. The append and append to access rights work
In combination with one another. Every time that a user attaches one entity
Instance to another, the user must have both rights. For example, when you
Attach a file to a note, you must have the Append access right on the file
Attachment and the append to access right on the note for the Operation
Work. |
| Share |
Elastic access |
Controls whether the user can share an entity instance
Another user or team. Sharing gives another user access to an entity instance.
For more information, see sharing. |
| Delete |
Deleteaccess |
Controls whether you can delete an entity
Instance. |
Create access
The right to create an instance of an entity is not supported ded in the previous
Table because this right does not apply to an individual instance, but instead
To a class of entities. Therefore, create is handled as a privilege instead
As an access right. By default, the user who creates an entity instance will
Have all rights on that entity instance, unless his or her other privileges
Forbid a specific right.
The create privilege controls whether you can create an entity instance. You
Can have the create privilege with local, deep, or global access level, and you
Will be able to create instances for other users. However, you can create
Instances for yourself only if you have create and read privileges.
For more information about dependencies that relate to create privileges, see
Security dependencies.
Sharing objects
Sharing objects
Sharing lets users give other users or teams access to specific customer
Information. This is useful for sharing information with users in roles that
Have only the basic access level. For example, in an Organization that gives
Salespeople basic read and write access to accounts, a salesperson can share
Opportunity with another salesperson so that they can both track the progress
An important sale.
For security reasons, it is important to develop the practice of sharing only
The necessary objects, or entity instances, among the smallest set of users
Possible, and to grant only the minimum access required for users to do their
Jobs.
Microsoft Dynamics CRM provides the following sharing capabilities:
- Share. Any user who has share privileges on a given entity type can
Share instances of that type with any other user or team in Microsoft Dynamics
CRM.
- Share rights. When you share an entity instance with another user,
You can indicate what access rights
(Read, write, delete, append, assign, and share) You want to grant to the other
User for that entity instance. Access rights on a shared entity instance can be
Different for each user with whom the entity instance is shared. However, you
Cannot give a user any rights that he or she wocould not automatically have
That type of entity based on the role assigned to that user. For example, if
User does not have read privileges on accounts and you share an account
That user, the user will be unable to see that account.
- Modify share. You can modify the rights granted to a shared entity
Instance after it has been shared.
- Remove share. When you share an entity instance with another user or
Team, you can stop sharing the instance at a later date. After you remove
Sharing for an entity instance, the other user or team loses access rights
The instance.
TipUse the grantaccess, modifyaccess, And
Revokeaccess messages
Sharing.
A user might have access to the same entity instance in more than one
Context. For example, a user might share an entity instance directly
Specific access rights, and he or she might also be on a team in which the same
Entity instance is shared with different access rights. In this case, the access
Rights that this user has on the entity instance is the union of all
Rights.
For a list of entities that support sharing, see the grantaccess message.
Sharing and inheritance
If an entity instance is created and the parent entity instance has certain
Sharing properties, the new entity instance inherits those properties.
Example: Joe and Mike are working on a high priority lead. Joe creates a new
Lead and two activities, shares the lead with Mike, and selects cascade sharing.
Mike makes a telephone call and sends an e-mail regarding the new lead. Joe sees
That Mike has contacted the company two times, so he does not make another
Call.
Sharing is maintained on individual entity instances. An entity instance
Inherits the sharing properties from its parent and also maintains its own
Sharing properties. Therefore, an entity instance can have two sets of sharing
Properties-one that it has on its own and one that it inherits from its
Parent.
Removing the share of a parent entity instance removes the sharing properties
Of objects (entity instances) that it inherited from the parent. That is, all
Users who previusly had visibility into this entity instance no longer have
Visibility. Notice that certain child objects might still be shared to some
These users if they were shared individually.
Assigning objects
Assigning objects
Anyone with assign privileges on an entity instance can assign that object
Another user. When an entity instance is assigned to a new user, the new user
Becomes the owner of the entity instance and its related entity instances.
Original user loses ownership of the entity instance but automatically shares it
With the new owner.
In Microsoft Dynamics CRM 4.0, the system administrator can decide for
Organization whether entity instances shocould be shared with previous owners or
Not after the assign operation. IfShare with previous ownerIs
Chosen then after the assign operation the previous owner shares the entity
Instance with all access rights. Otherwise the previous owner does not share
Entity instance and therefore may not have any access to the instance, depending
On his or her privileges.
For a list of entities that support assign see the assign message.