# Authorized User Information Change
1、 Authorizing user data changes: When some user data is at risk,The platform cleans up user data and notifies Service Account developers who have been authorized in the last 30 days via a message push server. We recommend that developers be aware of the incidents and proactively update or clean users' avatar and nicknames in a timely manner to reduce risk.
2、 Authorized user data withdrawal: When a user withdraws authorized information, the platform will notify the Service Account developer via the message push server, and ask the developer to take care to delete the user information in a timely manner.
3、 Authorized users complete logging out: When authorized users complete log out, the platform will notify the Service Account developer through the message push server, Please fulfill the corresponding personal information protection obligations in accordance with the law and in a timely manner to protect the rights and interests of users.
Click to view
# Example of event push:
# XML
<xml>
<ToUserName><![CDATA[gh_870882ca4b1]]></ToUserName>
<FromUserName><![CDATA[owAqB1v0ahK_Xlc7GshIDdf2yf7E]]></FromUserName>
<CreateTime>1626857200</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[user_authorization_revoke]]></Event>
<OpenID><![CDATA[owAqB1nqaOYYWl0Ng484G2z5NIwU]]></OpenID>
<AppID><![CDATA[wx13974bf780d3dc89]]></AppID>
<RevokeInfo><![CDATA[1]]></RevokeInfo>
</xml>
# JSON
{
"ToUserName": "gh_870882ca4b1",
"FromUserName": "oaKk346BaWE-eIn4oSRWbaM9vR7s",
"CreateTime": 1627359464,
"MsgType": "event",
"Event": "user_authorization_revoke",
" OpenID": "oaKk343WOktAaT2ygsX138BGblrg",
" AppID": "wx13974bf780d3dc89",
" RevokeInfo": "201",
}
# Event field definition
attribute | type | Introductions |
---|---|---|
ToUserName | string | UserName for Service Account |
FromUserName | string | Platform Push Service UserName |
MsgType | string | Default is: event |
Event | string | User_info_modified: user profile changes, user_authorization_revoke: user revocation, user_authorization_cancellation: user completes the cancellation; |
CreateTime | number | Sending Time |
OpenID | string | Authorized User OpenID |
UnionID | string | Authorized User UnionID |
AppID | string | AppID for Service Account |
RevokeInfo | string | User's withdrawn H5 authorization information, 201: address, 202: invoice information, 203: card information, 204: microphone, 205: nickname and profile picture, 206: location information, 207: selected picture or video |