Add doc example of attaching tags to a role

Adds example given in #3283 to docs.