Creating and Managing Service Accounts
Creating and Managing Service Accounts Red Hat Customer Portal 1 Create and manage service accounts Red Hat Customer Content Services
export HOST='https://sso.redhat.com' CLIENT_ID='<client_id>' CLIENT_SECRET='<client_secret>' SCOPES='openid api.iam.service_accounts' curl "USD{HOST}/auth/realms/redhat-external/protocol/openid-connect/token" --data-urlencode "grant_type=client_credentials" --data-urlencode "client_id=USD{CLIENT_ID}" --data-urlencode "client_secret=USD{CLIENT_SECRET}" --data-urlencode "scope=USD{SCOPES}" export ACCESS_TOKEN=USD( curl "USD{HOST}/auth/realms/redhat-external/protocol/openid-connect/token" --data-urlencode "grant_type=client_credentials" --data-urlencode "client_id=USD{CLIENT_ID}" --data-urlencode "client_secret=USD{CLIENT_SECRET}" --data-urlencode "scope=USD{SCOPES}" | jq -r '.access_token') curl --header "Authorization:Bearer USD{ACCESS_TOKEN}" --location "https://console.redhat.com/api/rbac/v1/access/?application=inventory"