Blocklet Server icon

Blocklet Server

Consume Blocklet Server API

User → Get User

AI-generated

Overview

This node operation retrieves detailed information about a specific user within a Blocklet app (team) using the user's DID and the app's DID. It supports options to include additional user-related data such as connected accounts, tags, and passports. This operation is useful for scenarios where you need to fetch comprehensive user profiles for management, auditing, or integration purposes.

Use Case Examples

  1. Fetch a user's profile by providing the app DID and user DID.
  2. Retrieve a user's profile including their connected accounts and tags for detailed user insights.

Properties

Name Meaning
App DID DID of the blocklet app (team) to which the user belongs.
User DID DID of the user to retrieve information for.
Enabled Connected Account Whether to include the user's connected account information in the response.
Include Tags Whether to include the user's tags in the response.
Include Connected Accounts Whether to include the user's connected accounts in the response.
Include Passports Whether to include the user's passports in the response.

Output

JSON

  • did - The DID of the user.
  • name - The name of the user.
  • email - The email address of the user.
  • tags - Tags associated with the user, if included.
  • connectedAccounts - Connected accounts of the user, if included.
  • passports - Passports of the user, if included.

Dependencies

  • Blocklet Server API with appropriate API key credentials

Troubleshooting

  • Ensure the provided App DID and User DID are correct and exist in the Blocklet server.
  • If the node returns an error about missing permissions, verify that the API key credential has sufficient access rights.
  • If optional fields like tags, connected accounts, or passports are not appearing, check that the corresponding boolean input properties are set to true.

Discussion