To see who has what roles and what permissions assigned to any given user in Azure SQL Database or SQL Server, do this:
To retrieve roles and role memberships for a user: your query is great for listing the database roles a user is a member of. It's returning loginmanager and dbmanager. Follow the code below:
SELECT
r.name AS role_principal_name,
m.name AS member_principal_name
FROM
sys.database_role_members rm
INNER JOIN sys.database_principals r ON im.role_principal_id = r.principal_id
INNER JOIN sys.database_principals m ON im.member_principal_id = m.principal_id
WHERE m.name = 'your_user_name';.
To get permissions to certain roles such as loginmanager and dbmanager you can make a query like this:
SELECT
dp.class_desc,
dp.permission_name,
dp.state_desc,
pr.name AS principal_name
FROM
sys.database_permissions dp
JOIN
sys.database_principals pr ON dp.grantee_principal_id = pr.principal_id WHERE pr.name IN ('loginmanager', 'dbmanager')
This query will show all the permissions that are permission_name and the state for each of these permissions in terms of either GRANT, DENY, or REVOKE pertaining to a role.
These queries will make you understand which roles and permissions are applied to any user or role within Azure SQL Database or SQL Server.