Allow users to set permissions on documents they create in windows

I am trying to come up with a way of letting my users set the permissions on a document they create. I'm using c#, with visual studio 2017.  This is in a windows environment. I was thinking of maybe adding a context item so when they right click a document one of the options is Set Permissions. When that is clicked it opens a dialog that let's them choose users and give them Edit/Read permissions. And the list of users they see would have to be restricted to the users in their assigned group. I'm hoping for ideas, sample code, anything to help. Thanks.
dodgerfanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AndyAinscowFreelance programmer / ConsultantCommented:
I doubt you can do that.

Thought experiment:  Allow users to modify permissions on documents.  
User X (basic user) allows user X to run document as administer.  Document runs a macro to elevate user X permissions to administer level.  User X is now has administer permissions.
0
AndyAinscowFreelance programmer / ConsultantCommented:
administrator not administer
0
William FulksSystems Analyst & WebmasterCommented:
You're doing it backwards. What you need to be looking at is folder permissions for the individuals or groups, then have them place the files in those folders. Doing it on a file by file basis is tedious.
0
Shaun VermaakTechnical SpecialistCommented:
Thought experiment:  Allow users to modify permissions on documents.  
User X (basic user) allows user X to run document as administer.  Document runs a macro to elevate user X permissions to administer level.  User X is now has administer permissions.
That is not possible without an admin running the macro.

All of your requirements are possible with SetAcl.dll (https://helgeklein.com/setacl/documentation/com-version-setacl-ocx/) but the user needs full control/owner security on the file (not admin)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.