Hi Adrian,
Thanks for the welcome, and the link.
I can certainly see me finding a use for that module but it doesn't cover my requirements in this instance.
I need the fields that are shown to be dependent not on the currently logged in user, but the on the type of user being editing. I.e. It will always be 'staff' who are in the back-end editing 'students' & 'agents', but I'd like a different set of fields depending on which it is.
My current thinking is along these lines:
1) create 3 roles [staff,agent,student]
2) add all fields for all roles to the user template
3) use a hook to hide some fields depending on the role of the edited user (not the editing user!)
If anyone with more experience can see a flaw in my plan or suggest a better method then I'm all ears.
thanks,
Martin.