How do we get the Role Binding ID

Hello! I’d like to import the role bindings via terraform using the confluent_role_binding resource. It says I need role binding (e.g. rb-f3a90de). But how do we get that?
I tried confluent iam rbac role-binding list --principal User:sa-xxxxxx --inclusive but it only returned this

    Principal    | Email |       Role        | Environment | Cloud Cluster |  Cluster Type   | Logical Cluster | Resource Type | Name | Pattern Type  
-----------------+-------+-------------------+-------------+---------------+-----------------+-----------------+---------------+------+---------------
  User:sa-xxxxxx |       | CloudClusterAdmin | env-xxxxx   | lkc-xxxxx     |                 |                 |               |      |
  User:sa-xxxxxx |       | ResourceOwner     | env-xxxxx   |               | Schema Registry | lsrc-xxxxx      | Subject       | *    | LITERAL

What version of the CLI are you using? I am on v3.64.2 and see role binding IDs:

% confluent iam rbac role-binding list --principal User:sa-xxxxxx --inclusive
     ID     |   Principal    | Email |       Role       | Environment | Cloud Cluster |  Cluster Type   | Logical Cluster | Resource Type | Name | Pattern Type
------------+----------------+-------+------------------+-------------+---------------+-----------------+-----------------+---------------+------+---------------
  rb-xxxxxx | User:sa-xxxxxx |       | DeveloperRead    | env-xxxxxx  |               | Schema Registry | lsrc-xxxxxx     | Subject       |      | PREFIXED
  rb-xxxxxx | User:sa-xxxxxx |       | MetricsViewer    |             |               |                 |                 |               |      |
  rb-xxxxxx | User:sa-xxxxxx |       | EnvironmentAdmin | env-xxxxxx  |               |                 |                 |               |      |
1 Like

I just now upgraded to v3.65.0 (was v2.38.1) and can now see the IDs as well! Thank you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.