1111 CLIContext ,
1212 console ,
1313 error ,
14+ format_option ,
1415 handle_error ,
1516 info ,
1617 pass_context ,
@@ -52,6 +53,11 @@ def create(
5253 Creates a new user with the specified details and assigns roles.
5354 Requires Unity Administrator or Tenant Administrator permissions.
5455
56+ \b
57+ Finding IDs:
58+ - Tenant IDs: Run 'unityauth tenant list'
59+ - Role IDs: Run 'unityauth role list'
60+
5561 \b
5662 Examples:
5763 unityauth user create --email user@example.com --first-name John --last-name Doe --password MyP@ss123 --tenant-id 1 --role-ids "2"
@@ -171,6 +177,12 @@ def update(
171177 Updates the role assignments for an existing user in a specific tenant.
172178 This replaces all current roles with the specified roles for that tenant.
173179
180+ \b
181+ Finding IDs:
182+ - User IDs: Run 'unityauth user list --tenant-id <ID>'
183+ - Tenant IDs: Run 'unityauth tenant list'
184+ - Role IDs: Run 'unityauth role list'
185+
174186 \b
175187 Examples:
176188 unityauth user update 5 --tenant-id 1 --role-ids "1,2"
@@ -256,6 +268,10 @@ def update_profile(
256268
257269 At least one field must be provided.
258270
271+ \b
272+ Finding your user ID:
273+ Run 'unityauth token-info' to see your user ID.
274+
259275 \b
260276 Examples:
261277 unityauth user update-profile 5 --first-name John
@@ -332,6 +348,7 @@ def update_profile(
332348
333349@click .command ()
334350@click .option ('-t' , '--tenant-id' , type = int , required = True , help = 'Tenant ID to list users from' )
351+ @format_option
335352@pass_context
336353@require_auth
337354def list_users (ctx : CLIContext , tenant_id : int , client : UnityAuthAPIClient ) -> None :
@@ -340,11 +357,15 @@ def list_users(ctx: CLIContext, tenant_id: int, client: UnityAuthAPIClient) -> N
340357 Lists all users in the specified tenant. Requires Unity Administrator
341358 or Tenant Administrator permissions for the target tenant.
342359
360+ \b
361+ Finding IDs:
362+ - Tenant IDs: Run 'unityauth tenant list'
363+
343364 \b
344365 Examples:
345366 unityauth user list --tenant-id 1
346- unityauth user list --tenant-id 1 --format json
347- unityauth user list --tenant-id 1 --format csv
367+ unityauth user list --tenant-id 1 -o json
368+ unityauth user list --tenant-id 1 -o csv
348369 """
349370 try :
350371 # Validate tenant ID
0 commit comments