How can I get someone's role in a group if they are not ingame?

I am making a Promotion Center for a restaurant I co-own. I am trying to make it so someone can input a user’s name and it will come up with their rank in the group. I don’t know how to get that though as I can’t just do Player:GetRoleInGroup() as the user isn’t ingame and I don’t have a player object to fill its place. Any ideas or suggestions would be great. I hope I don’t need to use a third party for this.

For this, I am also using noblox.js if you were curious. I am using the given module I found online.

2 Likes

Use GroupService:GetGroupsAsync. It takes a user ID, making it convenient here.

5 Likes