How to check roles when username in the group?

Below coding just check user roles in person in ACL entry. How to check roles in the by group ?

Function check_menu_role (loRoels As String)

Dim session As New NotesSession

Dim db As NotesDatabase

Set db = session.CurrentDatabase

Dim msg As String 

Dim roles As Variant 

roles = db.QueryAccessRoles(session.UserName)

If roles(0) = "" Then

	Messagebox "None",, "Your roles in this database"

Else

	Forall role In roles

		msg$ = msg$ & role & Chr(10)

	End Forall

	Messagebox msg$,, "Your roles in this database"

End If

End Function

Subject: How to check roles when username in the group ?

Do you mean:

roles = notesDatabase.QueryAccessRoles(YourGroupName)

Rufus.