At the moment, my user profile URLs are changed in the standard way with pathauto, e.g.:


However, I have different types of users (e.g. students, faculty, staff, etc.).

I would like the URL of each user's profile page to reflect that, e.g.:

  • example.org/students/user.name1
  • example.org/faculty/user.name2

The user type is set in a custom profile field: profile_user_type.

Is it possible to customize the URLs based on a profile field (in Drupal 6)?


As Pathauto uses the tokens provided by the Token module, you could use the Token Profile module that implements tokens which return the value of user profile fields.

  • This is perfect! I was wasting time trying to do it by hand in PHP! I tested it and it is exactly what I was looking for. – Kosmonaut Jun 29 '11 at 17:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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