---
name: netezza-usagenzclisamlauth
title: Usage of `nzcli` with SAML authentication
description: ''
last-updated: 2023-12-26
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/netezza?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

{:new_window: target="_blank"}
{:shortdesc: .shortdesc}
{:screen: .screen}
{:pre: .pre}
{:table: .aria-labeledby="caption"}
{:codeblock: .codeblock}
{:tip: .tip}
{:download: .download}
{:important: .important}
{:caption: .caption}
{:note: .note}

# Usage of `nzcli` with SAML authentication
{: #usage_nzcli_w_saml_auth}

After successful authentication from Netezza UI and Identity Provider, you will get a JWT token in the **Administration -> tools** tab. You can use the JWT token to execute `nzcli` commands as follows:

 ```bash
./nzcli nzcommand  -u username -pw  jwttoken -apiserver ip
```
{: codeblock}


```bash
./nzcli nzcommand  -u SAMLUSER -pw  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -apiserver X.X.X.X
```
{: codeblock}

This JWT token is valid for 15 minutes.
{: note}