I have a project where user permissions need to be granted to a folder allowing read only rights. I have used the code in thread: thread222-644287 with great success.
The problem I have now is that I also need permissions to be removed once the user has finished reviewing the contents of the folder.
I have tried replacing this declaration in the subroutine SetAccess:
Dim sCurrentACE As ACCESS_ALLOWED_ACE
with:
Dim sCurrentACE As ACCESS_DENIED_ACE
where both ACCESS_ALLOWED_ACE and ACCESS_DENIED_ACE are Types defined earlier in the code.
The result of this has been that the users permissions have remained the same. I then manually removed the user from the permissions list and ran it again and it actually added them back in. ARRGGHH!
I really am not at all at home with API functions and short of what I have attempted here I am stumped. I can't find any example on the net other than the code listed in the thread: thread222-644287 (although this example does appear all over the net)
Has anyone here attempted this before or know how it can be achieved?
Many thanks in advance.
Namaste
G
The problem I have now is that I also need permissions to be removed once the user has finished reviewing the contents of the folder.
I have tried replacing this declaration in the subroutine SetAccess:
Dim sCurrentACE As ACCESS_ALLOWED_ACE
with:
Dim sCurrentACE As ACCESS_DENIED_ACE
where both ACCESS_ALLOWED_ACE and ACCESS_DENIED_ACE are Types defined earlier in the code.
The result of this has been that the users permissions have remained the same. I then manually removed the user from the permissions list and ran it again and it actually added them back in. ARRGGHH!
I really am not at all at home with API functions and short of what I have attempted here I am stumped. I can't find any example on the net other than the code listed in the thread: thread222-644287 (although this example does appear all over the net)
Has anyone here attempted this before or know how it can be achieved?
Many thanks in advance.
Namaste
G