# Custom group for service account

**URL:** <https://discuss.kubernetes.io/t/custom-group-for-service-account/15285>\
**Category:** General Discussions\
**Created:** [March 24, 2021, 6:40pm UTC](https://discuss.kubernetes.io/t/custom-group-for-service-account/15285 "2021-03-24T18:40:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomas\_Kacmar](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/tomas_kacmar/32/7249_2.png) [@Tomas\_Kacmar](https://discuss.kubernetes.io/u/Tomas_Kacmar)\
**Post date:** [March 24, 2021, 6:40pm UTC](https://discuss.kubernetes.io/t/custom-group-for-service-account/15285/1 "2021-03-24T18:40:41Z")

</div>

Hello guys,  
I need to assign one cluster role for few service accouts. These accounts will be in different namespaces. So, I would like to assign role for group, and create service accounts with this group. Is there some way how to create service account with custom group?

---

<div class="post-metadata">

**Author:** ![tej-singh-rana](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/tej-singh-rana/32/5921_2.png) [@tej-singh-rana](https://discuss.kubernetes.io/u/tej-singh-rana)\
**Post date:** [March 31, 2021, 6:50pm UTC](https://discuss.kubernetes.io/t/custom-group-for-service-account/15285/2 "2021-03-31T18:50:03Z")

</div>

Hey @Tomas_Kacmar  
If I understood your question completely, I think you’re looking for Role and ClusterRole.  
[Using RBAC Authorization | Kubernetes](https://kubernetes.io/docs/reference/access-authn-authz/rbac/#role-and-clusterrole)
