For most of the user information, you'll need to read cwd_user. For their groups, read cwd_membership. Then for their roles, read projectroleactor, remembering that their groups could also be used in roles.
Why do you want to do this though? It's probably a dreadfully complex way to achieve what you're trying to do.
It looks like you're new here. Sign in or register to get started.