Add doc example of attaching tags to a role

Add example given in #3283 to docs.