This fixes #7579.  It now gives the roles to the UI.