# Using ccloud with Service Account

**URL:** <https://forum.confluent.io/t/using-ccloud-with-service-account/2008>\
**Category:** Confluent Cloud\
**Created:** [10 June 2021 10:13 UTC](https://forum.confluent.io/t/using-ccloud-with-service-account/2008 "2021-06-10T10:13:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tch](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/tch/32/791_2.png) [@tch](https://forum.confluent.io/u/tch)\
**Post date:** [10 June 2021 10:13 UTC](https://forum.confluent.io/t/using-ccloud-with-service-account/2008/1 "2021-06-10T10:13:39Z")

</div>

I would like to use ccloud to create a new topic using Service Account authorization. I logged in to the ccloud using:  
_ccloud init sandbox --kafka-auth --bootstrap --api-key --api-secret_   
and from Confluent Cloud UI I granted ACL to create any topic from my service account.

But ccloud doesn’t recognize “ccloud kafka topic create topic” command:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/7fb943c5a1332f5777c81de1a636cc3c52a08970.png)

Are there some limitations on what Confluent Cloud CLI can do for Service Accounts? Is it a bug? Did I do something in a wrong way?

---

<div class="post-metadata">

**Author:** ![nbommu1](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/nbommu1/32/247_2.png) [@nbommu1](https://forum.confluent.io/u/nbommu1)\
**Post date:** [16 May 2022 13:00 UTC](https://forum.confluent.io/t/using-ccloud-with-service-account/2008/2 "2022-05-16T13:00:13Z")

</div>

here are the steps to use service-account to create topics.

1. create api key with resource kafka ID  
ccloud api-key create --resource --description “”

2. list all api-key and find one recently created.

3. ccloud api-key use --resource 

4. ccloud cli use service account to create kafka topics etc…

or you can use restapi which is easy  
[https://docs.confluent.io/cloud/current/api.html#operation/createKafkaTopic](https://docs.confluent.io/cloud/current/api.html#operation/createKafkaTopic)
