bernard li
bernard li2mo ago

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
Larzous
Larzous2mo ago
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
bernard li
bernard liOP2mo ago
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
Larzous
Larzous2mo ago
links to the api call your making that is generating a 404?
bernard li
bernard liOP2mo ago
ZITADEL Docs
List metadata of an user filtered by query.
No description
bernard li
bernard liOP2mo ago
In the project:so confused
No description
bernard li
bernard liOP2mo ago
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

Did you find this page helpful?