Using the Management API in Actions

Last Updated: Jul 26, 2024

Overview

This article details how to call the Management API in Actions.

Applies To

  • Management API
  • Actions

Solution

Please see the below video.

There are plans to expand functionality in Actions even more in the future. Currently, the only built-in method for using the Management API from within Actions is for updating user metadata. Use the api object to update user metadata in a pre-user-registration 27 or post-login action 50:

  • api.user.setUserMetadata(name, value)
  • api.user.setAppMetadata(name, value)

If using the Management API for something other than updating metadata, create and authorize a machine-to-machine application 54 for the Action (see steps below).

NOTE: For making updates to the user, it’s recommended not to use a post-user-registration action. Instead, consider using a post-login action (FAQ 63).

Related References

9 Likes