Add resolve roles to array method

Signed-off-by: ahmadshah <ahmadshahhafizan@gmail.com>