ListUserMetadata
Here is my code:
const userService: Client<typeof UserService> = await createServiceForHost(
UserService,
serviceUrl,
);
let getUserMetadataRequest: ListUserMetadataRequest = create(
ListUserMetadataRequestSchema,
{
userId,
filters: [{
filter: {
case: "keyFilter",
value: {
"key": "key",
"method": TextFilterMethod.EQUALS
}
}
}]
}
);
return userService.listUserMetadata(getUserMetadataRequest);
The program encountered an error while running:
unknown method ListUserMetadata for service zitadel.user.v2.UserService;
6 Replies
Metadata should be in the user token
A link to the API or sdk page yiur referencing is also needed for others to know what frontend your using
I know what you mean,but there are some special situations where I need to obtain custom values from metadata for logical judgment without receiving the user token,At this time, I need to obtain them through an interface,But the official interface call failed,with a 404 indicating that the interface address is incorrect. How can it be included in the official documentation
links to the api call your making that is generating a 404?
https://zitadel.com/docs/apis/resources/user_service_v2/user-service-list-user-metadata Using Postman call will return 404
ZITADEL Docs
List metadata of an user filtered by query.

In the project:so confused

I found the corresponding response in the historical question, and this interface is currently only available in version V1,I hope the official can indicate this in the documentation