Get roles associated with a user in automation script

We are in the process of creating an automation rule which will delete spam profiles from our community. The criteria for the spam profile is user having "Everybody" and "Registered Users" roles. Is there any way we can fetch all the roles associated for a particular user in automation script?

Parents Reply Children
No Data