It looks like this is just for within ACL:
Setting up the permission inside the ACL screen is not a problem, I'm stuck with getting the link to dynamically insert the username, eg: replace <username> with users actual login name:
[[users:<username>:docs |Documentation]]
I have tried using PHP block inside the link in the page but that does not work. Is this a limitation of the links?