User has 2 User folders causing ERROR: "Microsoft Edge Can't read and write to its data directory"

Kyle Snyder 15 Reputation points
2023-08-07T20:06:51.0533333+00:00

Hi,

I have an issue where my managed machine gives a user 2 user folders (kyletest and AzureAD_kyletest_$). THe user does not have any access to the AzureAD_kyletest_$ folder; therefore, when logging into an app gives me the error "Microsoft Edge Can't read and write to its data directory".

Is there a way via intune to give users access to both folders or what is the AzureAD hidden folder used for?

Microsoft Security | Intune | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Crystal-MSFT 53,986 Reputation points Microsoft External Staff
    2023-08-08T02:27:58.23+00:00

    @Kyle Snyder, Thanks for posting in Q&A. Based on checking my Intune managed device, I didn't find the two folders. It seems the folders are Azure AD related.

    For your question, based as I know, there's no built-in policy can grant the folder permission. But you can check if any PowerShell script can do it. After researching, I find set-acl command can change folder permission. You can test on your device to write the PowerShell Script. Here is link describe the commands for your reference:

    https://petri.com/how-to-use-powershell-to-manage-folder-permissions/

    Note: Non-Microsoft link, just for the reference.

    After the PowerShell script is ready, you can consider deploying it via Intune:

    https://learn.microsoft.com/en-us/mem/intune/apps/intune-management-extension

    Hope the above information can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.