Using access groups during app creation

Quick question, is there any way to grab the metadata of a user and grab the access group they are assigned to when building an app. I am creating an app and I want to place the users who need access to the app to a group and I have another app that serves as a home page and essentially I want to hide the tile for people who are not in the group I created. So in my component that will redirect to the app I need to create logic to hide the app and in order to do that I am trying to use the access groups.

So I know you can achieve this using a configuration variable but I want to know if it can be done with access groups before I make a config variable

I figured it out myself.

current_user.groups.some(group => === 'admin')

This code will iterate through the groups that the current user has attached.