# Managing users (LINE Login v2.0)

This topic explains how to use LINE Login v2.0 endpoints to manage users who have logged in through the LINE Login API.

Note

This is an older version (v2.0) of the documentation.

To learn how to do this using the latest version of LINE Login (v2.1), see Managing users.

# Get user profiles

You can get profile information for users who have been identified by an access token. Profile information includes a user's ID, display name, profile image, and status message.

Both LINE Login v2.0 and v2.1 share the same method for fetching user profiles. To learn more, see Getting user profiles.

# Log out users

Note

This topic explains how to use LINE Login v2.0 endpoints to log out users. To learn how to do this using the latest version of LINE Login (v2.1), see Logging out users.

To create a better user experience, we recommend providing a way for users to log out of your app.

When a user has logged out of your app, revoke their access token and delete all the user data in your app.

Example request to revoke an access token:

curl -v -X POST https://api.line.me/v2/oauth/revoke \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'refresh_token={refresh token}'

To learn more, see Revoke access token in the LINE Login v2.0 API reference.