Adding role to api method