In this console, user groups are mainly used for the purpose of access control. In order to assign a role to a group in an external directory such as Azure AD, the group has to be imported and saved locally.
Navigate to "Groups"
Click the "Import Group" button
...