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?
 
Shaun VermaakTechnical Specialist/DeveloperCommented:
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.