I used to following to create a role in Azure SQL database, grant permissions to the role and assigned the role to the user:
CREATE ROLE [DepartmentReadOnly] AUTHORIZATION [dbo]
GO
GRANT SELECT ON tblDepartment TO DepartmentReadOnly
CREATE USER [user1] FROM LOGIN [user1];
EXEC sp_addrolemember DepartmentReadOnly, user1;
Now what sql do I use to retrieve the DepartmentReadOnly role name and permissions from the database as well as user1 user information including which roles user1 belongs to?
There is no sys.server_principals system view showing up in Azure so I am lost. Can anyone please help?