What are Code Groups?
For the Microsoft MCTS Exam 50 736, you will need to know what code groups are. Code groups are basically just authorization devices. All they do is associate the assemblies to the permission sets. If you remember what user groups provide to RBS, this is exactly what code groups provide to the code access security (CAS).
During the Microsoft MCTS Exam 50 736, you will need to know how to implement code group. Let’s see an example of one of its applications. The administrator wants to allow some users access to a specific folder. He must create a user group, add all users to this group, and assign the desired permissions to the whole group. This is similar to what code groups do. However, when using them, there is no need to add every single assembly to a group manually. Where does it know about group membership? Membership is established by the so called evidence. This evidence is specified by you as the code group’s membership condition.
Permission sets
User groups can control the authorization only based on distributed Access Control Lists linked to each resource. On the other hand, code groups are using centralized permission sets. You can easily see that, for example, the Internet_Zone code group uses the permission set for the Internet zone. You are unable to set individual permissions for a code group, which can be sometimes a big disadvantage.
General information
MCTS Certification is not an easy thing, so you need to know some general information. Specifying a single type of evidence, accompanied by a single permission set, for a whole code group might seem a bit restrictive. But just like user accounts might be member of multiple user groups, assemblies can also be members of more than one code group. You can also nest code groups within each other. This allows you to assign permissions if the group meets the evidence requirements for all the code groups. Everything in this article must be known before you can get to the Microsoft MCTS Exam 50 536.
Key Exam Points
- Learn everything about code groups
- Study some examples of code group implementations
- Work on your own be a master at the Microsoft MCTS Exam 50 536
Related Terms
This article is based on the 2nd edition of the Microsoft .Net Framework Application Training Kit with the purpose to help 70-536 Exam takers to succeed. I constantly look for ways to improve the content. Please leave a comment about this article or drop me a message if you would like to see changes for this site.





