I would like to create a link that leads each user to their edit profile page.

What should I use as URL? I get access denied on the paths I tried, including http://example.com/user/[uid]/edit.

1 Answer 1


You might want to try using the Menu Token module, so you could add a user id token in the path.

Otherwise you'd need to create a page callback in a custom module using hook_menu(), say to 'user/edit', and in that callback, redirect the user to 'user/[uid]/edit'. That way you could add a menu link to 'user/edit' and it would work. See this comment for an example.

  • I created a page callback based on the example and i still get "access denied message". Please what could be wrong? Thanks.
    – seyi
    Commented Jul 22, 2013 at 16:42
  • Do the users have permission to view / edit their own profiles on the permissions page? Commented Jul 22, 2013 at 19:13
  • Yes they do. I have also given the required permissions for profile 2. Does it matter that i have field permissions installed?
    – seyi
    Commented Jul 23, 2013 at 8:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.