This is another new feature addition in CRM 2013.
In the previous versions of CRM record could be shared to other users or team to provide them access to the records. While sharing the records you could specify the permissions provided to the shared users to that record. The shortcomings here were either you add one user at a time and then specify the permissions for each user at the time of adding (repetitive work) or else pre-create teams and then share the record with the team. If you had a dynamic setup where you could have different set of users working on different records, it would require creating of those many teams to use team sharing. This was not a feasible idea.
Access Teams are based on these same concepts but without the limitations of the earlier Share options.
You can user Access Teams to provide access to records to more than one user and have teams created on the fly as the users are added.
- Enable the Access Team feature for the desired entity.
- Define the Access Team Template
Navigate to Settings –> Administration –> Access Team Templates
In the Access Template you define the permissions to be assigned to the users selected for this Access Profile
The entity will only list those entities for which the Access Team feature is enabled.
You can create multiple templates for any entity. You can then select appropriate template on the entity form.
Add the Access Teams grid on the desired entity form.
Add a subgrid control and set the following properties.
In the Team Template select the Access Template that would like to apply.
All users included in the team grid would be controlled by the access template selected for the grid and would be provided permissions accordingly.
If a user that has user level access permission logs in, they would still be able to view records that were made accessible to them through the Access Teams.
The Team profile defines the privileges assigned.
- For every record that you assign team members, a team record is created. So it creates one team per record.
-
The team type for this record is set to Access
-
The team name is auto generated by concatenating the entity record + the access template record id.
Programmatically Add/Remove users from a records Access Team
Read the Access Template ID using the Template name.
The entity that stores Access Template is “teamtemplate”
// Query using ConditionExpression and FilterExpression
ConditionExpression condition = new ConditionExpression();
//attribute name add to condition
condition.AttributeName = “teamtemplatename”;
//operator add to condition
condition.Operator = ConditionOperator.Equal;
//values added to condition
condition.Values.Add(_accessTeamTemplateName);
FilterExpression filter = new FilterExpression();
filter.Conditions.Add(condition);
// create query expression
QueryExpression query = new QueryExpression(“teamtemplate”);
query.Criteria.AddFilter(filter);
query.ColumnSet = new ColumnSet(“teamtemplatename”);
// execute query which will retrieve the Access team teamplate
accessTeamColl = service.RetrieveMultiple(query);
Add user to the Access Team for a record
//Request to create the Access team and add the user in that access team
AddUserToRecordTeamRequest adduser = new AddUserToRecordTeamRequest()
TeamTemplateId = teamTemplateId
AddUserToRecordTeamResponse response = (AddUserToRecordTeamResponse)service.Execute(adduser);
Similarly you can use the RemoveUserFromRecordTeamRequest to remove users from a particular records access team.
Free 70% of storage space in CRM with Attachment Management Apps!
Attach2Dynamics – Store and manage documents/attachments in cloud storage of your choice – SharePoint, Dropbox or Azure Blob Storage from within Dynamics 365 CRM.
SharePoint Security Sync – Robust and secure solution to integrate Dynamics 365 CRM and SharePoint Security Sync thereby ensuring secure access to confidential documents stored in SharePoint.
I am adding the user to Account Access Team using plugin. User has a security role (say Business User) which has only Organization level Read privileges. I am giving him all privileges in Access Team Template except Delete. While adding user through plugin, I get an error – ‘The user can’t be added to the team because the user doesn’t have the “prvAppendAccount” privilege’. What can be the issue? If I give him User level Append privilege on security role (say Business User) then the error comes for “prvAppendAccount” privilege and like that continues till I give User level Write, Append, AppendTo, Assign and Share on his security role.
I don’t want to give any privilege except Organization level Read to his security role. All other privileges will be granted once he is a part of Access team that I am adding based on my logic.
Please suggest.
Hi Aditya,
You need to give the basic user level privileges for the entity which you wish to grant the access using the Access Template.
For e.g. If you wish User1 to give Assign access through Access Template then you must give user level access for Assign privilege through security role to the User.
There’s no other way to avoid the error.
Hope this helps.
Thanks!
Sam
Hello,
While importing a solution, I get access teams cannot be imported error. How to import the solution without deleting the team templates? Or if that is mandatory can I take a backup of that? Please help
While importing solution, the access team template is not mandatory. Actually, it should not give any error. So, will you please let me know what is the error message that you are facing?