Finding Role Based on Member ID

Hey all,

I was wondering if there was a way to find the roles of a member just using their ID while they’re NOT logged in.

I know you can use “currentMember” to get roles but I’m trying to do this regardless of if the member is logged in or not. I’ve scoured the documentation and can’t seem to find anything.

Another avenue for solution would be to find all the members in a role (again regardless of if they’re logged in or not) and then check to see if a specific member belongs to the role.

I’m trying to set up specific emails to notify a member, in a specific “subbed to emails” role, of an event even if they’re not logged in but I can’t seem to find a way to do that.

Thanks!