TFS Azure Devops - This access control list is not in canonical form and therefore cannot be modified

0 votes
I am not able to check the code into Team Foundation Server source control. Visual Studio is showing an error "This access control list is not in canonical form and therefore cannot be modified." like this. It does not specify the path with the problematic ACL. Is there any solution to this?
Mar 30, 2022 in Other DevOps Questions by Kichu
• 19,040 points
599 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
The access control list for a file or folder needs to be rewritten in canonical form. Open an administrator PowerShell prompt. I found that this does not necessarily work unless running as an administrator, although no errors indicate that it fails.

First try the directory where TFS stores the workspace files:
cd $env:localappdata
cd '.\Microsoft\Team Foundation\'
gci -Recurse | % { Get-Acl $_ | Set-Acl $_ } # rewrite ACLs for all child folders and files.
$x = gi . # get current folder
Get-Acl $x | Set-Acl -Path $x # rewrite its ACL.

Now try parent directories (repeat this procedure to recurse up - for me the problem was fixed once I rewrote the ACL for the AppData folder).

$x = $x.Parent # get the parent directory
$x # display the folder to the console so you know what path you are working on.
Get-Acl $x | Set-Acl -Path $x # rewrite its ACL.

If this does not work, try repeating these steps for your source control path and its parent directories.
answered Apr 2, 2022 by narikkadan
• 63,600 points

edited 5 days ago

Related Questions In Other DevOps Questions

0 votes
0 answers

Azure Devops Tasks not showing up in my Task Template List

I created a task using the templates ...READ MORE

Mar 30, 2022 in Other DevOps Questions by Kichu
• 19,040 points
714 views
0 votes
0 answers
0 votes
0 answers
0 votes
1 answer

Is it possible to have a link to raw content of file in Azure DevOps

Sure, here's the call for the rests: GET ...READ MORE

answered Feb 10, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
813 views
0 votes
1 answer

What is the Difference between VSO, VSTS and Azure Devops

Azure DevOps was previously known as VSO ...READ MORE

answered Mar 8, 2022 in Azure by Edureka
• 13,620 points

edited Jun 27, 2023 by Khan Sarfaraz 2,005 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,240 views
–1 vote
0 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP