Hi @Rares_Lungu and welcome to the forum!
The role field is undocumented in the API docs (cc: @Andrew-asana, maybe you can add it?) but you can access it using the opt_fields option; see:
Note that it’s a property of a user’s workspace membership, not of a specific project, so you won’t be able to get it via a project-related call.