Extracting effective permissions from TFS - sample update v1.2

The team is happy to announced an update of the Extracting effective permissions from TFS whitepaper and sample.

where are the bits?

image

RELEASE V1.2 | WHITEPAPER | SAMPLE ZIP

what has changed?

Whitepaper

  • No changes.

Sample Code

  • Fixed bugs
    • Root area permissions are missing.
    • Root iteration permissions are missing.
  • Refactoring
    • Replaced the hardcoded SecurityNamespaces Id with dynamically retrieved available SecurityNamespaces in ISecurityService Object using GetSecurityNamespaces() method.
      Sample 1
    • Replaced the hardcode security actions with dynamically retrieved actions from SecurityNamepace usingĀ  SecurityNamespaceDescription.Actions property.
      Sample 2
    • Created a generic method (AccessControlEntryToPermission) to handle the conversion of AccessControlEntry to Permission object and check the permission dynamically against ActionDefinition.Bit and removed duplicate handling per each SecurityNamespace.
      Sample 3
    • Moved couple of methods to the Helpers class.
  • Permission report sample
    Sample 4

please send candid feedback!

image

We need your candid feedback. Here are some ways to connect with us:

  • Add a comment below.
  • Contact us on our blog.