Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7931609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:46:11+00:00 2026-06-03T20:46:11+00:00

We’re a fairly large project with a single trunk branch. Most of it uses

  • 0

We’re a fairly large project with a single trunk branch. Most of it uses the default permissions, but a few folders have custom permissions – say, only “Builders” group is allowed to check-in.

We want to allow people to create their own private branches out of trunk, where they can freely check-in and merge later (hopefully often). However, creating a branch, the special permissions are copied along with the folders, meaning that people can’t freely check-in into their branch.

  • Is there a way to clear special permissions from a branch, or a folder?
  • Is there a way to do so automatically, so anyone creating a branch under /private/** will not encounter this problem?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T20:46:13+00:00Added an answer on June 3, 2026 at 8:46 pm

    I found out about tf permission (Example: tf permission /inherit:yes itemSpec). However, the /recursive switch doesn’t work with it. I guess I could write something that runs it recursively…

    Edit: I finally got around to writing a tool for it:

    static int Main(string[] args)
    {
        if (args.Length == 0 || args.Any(a => !a.StartsWith("$/")))
        {
            Console.WriteLine("Removes all explicit permissions and enables inheritance for a subtree.\n"
                            + "Example:  " + Path.GetFileNameWithoutExtension(Assembly.GetEntryAssembly().Location) + " $/project/path1 $/project/path2");
            return 3;
        }
    
        WorkspaceInfo wi = Workstation.Current.GetLocalWorkspaceInfo(Environment.CurrentDirectory);
        if (wi == null)
        {
            Console.WriteLine("Can't determine workspace for current directory: " + Environment.CurrentDirectory);
            return 2;
        }
    
        var Tfs = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(wi.ServerUri);
        VersionControlServer VersionControlServer = Tfs.GetService<VersionControlServer>();
    
        Console.WriteLine("Server: {0}  Getting permissions...", wi.ServerUri);
        ItemSecurity[] perms = VersionControlServer.GetPermissions(args, RecursionType.Full);
    
        Console.WriteLine("Will remove explicit permissions from the following items:");
    
        var changes = new List<SecurityChange>();
        foreach (ItemSecurity perm in perms)
        {
            Console.WriteLine("    " + perm.ServerItem);
    
            changes.Add(new InheritanceChange(perm.ServerItem, inherit: true));
            foreach (AccessEntry e in perm.Entries)
            {
                changes.Add(new PermissionChange(perm.ServerItem, e.IdentityName, null, null, PermissionChange.AllItemPermissions));
            }
        }
    
        Console.WriteLine("Enter to confirm:");
        Console.ReadLine();
    
        var successfulchanges = VersionControlServer.SetPermissions(changes.ToArray());
        if (successfulchanges.Length == changes.Count)
        {
            Console.WriteLine("Explicit permissions removed from all items");
            return 0;
        }
        else
        {
            Console.WriteLine("Explicit permissions removed only from:");
            foreach (var c in successfulchanges)
            {
                Console.WriteLine("    " + c.Item);
            }
    
            return 1;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
This could be a duplicate question, but I have no idea what search terms
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,
I have a small JavaScript validation script that validates inputs based on Regex. I
I have this code to decode numeric html entities to the UTF8 equivalent character.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.