Share via

Write a file with windows authentication and write with user

Juan Solares 21 Reputation points
2021-11-19T14:29:58.877+00:00

Hi,

I'm trying to write a file with asp.net mvc c#, with the user logon and not with the app pool, how i can reach, o where i can read about permisions.

thanks in advance.

Juan Solares

Developer technologies | ASP.NET Core | Other
0 comments No comments

Answer accepted by question author

Yijing Sun-MSFT 7,106 Reputation points
2021-11-20T03:29:04.517+00:00

Hi @Juan Solares ,
Accroding to your description,as far as think, ASP.NET Impersonation is what you need. When using impersonation, ASP.NET applications can execute with the Windows identity (user account) of the user making the request.You need to make sure that the authenticated user has write permission to the network folder.

Best regards,
Yijing Sun


If the answer is the right solution, 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.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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