Identity and Access Management: Node.js Client

release level npm version

Identity and Access Management client for Node.js

A comprehensive list of changes in each version may be found in the CHANGELOG.

Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in Client Libraries Explained.

Table of contents:

Quickstart

Before you begin

  1. Select or create a Cloud Platform project.
  2. Enable billing for your project.
  3. Enable the Identity and Access Management API.
  4. Set up authentication so you can access the API from your local workstation.

Installing the client library

npm install @google-cloud/iam

Samples

Samples are in the samples/ directory. Each sample's README.md has instructions for running its sample.

Sample Source Code Try it
Policies.create_policy source code Open in Cloud Shell
Policies.delete_policy source code Open in Cloud Shell
Policies.get_policy source code Open in Cloud Shell
Policies.list_applicable_policies source code Open in Cloud Shell
Policies.list_policies source code Open in Cloud Shell
Policies.update_policy source code Open in Cloud Shell
Policy_bindings.create_policy_binding source code Open in Cloud Shell
Policy_bindings.delete_policy_binding source code Open in Cloud Shell
Policy_bindings.get_policy_binding source code Open in Cloud Shell
Policy_bindings.list_policy_bindings source code Open in Cloud Shell
Policy_bindings.search_target_policy_bindings source code Open in Cloud Shell
Policy_bindings.update_policy_binding source code Open in Cloud Shell
Principal_access_boundary_policies.create_principal_access_boundary_policy source code Open in Cloud Shell
Principal_access_boundary_policies.delete_principal_access_boundary_policy source code