Get all scopes in which the assigned role mappings of the user

Hello, how I can get all scopes in which assigned role, for example by this role name or ID? Is it possible?