# User Management
# UnionID Mechanism Dxplaination
After a follower interacts with Official Account, the Official Account message template can obtain the follower's OpenID (encrypted WeChat number), which is unique for each user.For different Official Account message templates, the same user has different openids.Official Account message template through to get basic user information according to OpenID, including language and attention time.
Please note that if the developer has multiple Official Account, or Official Account message templates, Mobile App 、 Weixin Mini Program 、Delivery Assistant, Website App, WeChat, Delivery Assistant and Website App, and WeChat open.weixin.qq.com )After binding the Official Account message template, Union ID mechanism can be used to meet the above requirements.
# User ID Dxplaination
There are two user identity tags, openid and unionid
An openid is a WeChat user's identity for an app (Official Account). The same WeChat user has different openids for different apps (Official Account message template).
A unionid is a WeChat user identifier for an open platform.If the developer has multiple Mobile App, Website App, and Weixin Mini ProgramThe user's unionid can be distinguished by obtaining the user's basic information by obtaining a unionid in the user''s essential information, because as long as the mobile apps, website apps and Mini Programs, small stores and delivery assistants under the same WeChat open platform account, the user' unionid is unique.
Quick Notes Formula:
微信用户 + 公众号 AppID = openid
微信用户 + 开放平台账号 = unionid
That is, as long as the Official Account AppID does not change, openid does not change.As long as the Official Account message template remains the same, the unionid will not change.
Please note:
From June 8, 2020, users started paying attention to the source "WeChat advertisement (ADD_SCENE_WECHAT_ADVERTISEMENT)" from "OTHERS" and no longer output profile pictures or nickname information after December 27, 2021.
List of interfaces:
Get basic user information: Click here to view interface documentation
Bulk access to basic user information: Click here to view interface documentation
# List of interfaces
# Label Management
Interface Name | English name | Request Path |
---|---|---|
Get a list of fans under the tag | getTagFans | /cgi-bin/user/tag/get |
Get a label | getTags | /cgi-bin/tags/get |
Create a tag | createTag | /cgi-bin/tags/create |
Edit labels | updateTag | /cgi-bin/tags/update |
Delete the tag | deleteTag | /cgi-bin/tags/delete |
Cancel labels for users in bulk | batchUntagging | /cgi-bin/tags/members/batchuntagging |
Label users in bulk | batchTagging | /cgi-bin/tags/members/batchtagging |
Get a list of users' tags | getTagidList | /cgi-bin/tags/getidlist |
# User Information
Interface Name | English name | Request Path |
---|---|---|
Cancel blocking users | batchUnblacklist | /cgi-bin/tags/members/batchunblacklist |
Get a blacklist list for Official Account | getBlacklist | /cgi-bin/tags/members/getblacklist |
Get basic user information | userInfo | /cgi-bin/user/info |
Get basic user information in bulk | batchUserinfo | /cgi-bin/user/info/batchget |
Get a list of subscribers | getFans | /cgi-bin/user/get |
Disable users | batchBlacklist | /cgi-bin/tags/members/batchblacklist |
Set user backup name | updateRemark | /cgi-bin/user/info/updateremark |