Send Email when a user is given access to a namespace

My question is let us suppose there is a namespace called xyz and there are 3 roles associated with it lets say a, b and c a new user which is created is assign one of the role which can access the namespace xyz then how can i make a workflow for the same to send customized email as per the namespace

So what you’re asking is how to send an email to a new user?