Implement the logic associated with the steps 9 and 10 in "Figure OAuth 2.0 based SSO between LINE WORKS and the customer" and the steps 7 and 8 in "Figure OAuth 2.0 based API authentication", and provide it as an API to LINE WORKS. After verifying the access token, the customer SSO system returns user information.
Note
- The user information returned by the customer SSO system must be the same as the member's externalKey in Member External Key Mapping under Organization Sync in the Developer Console.
https://CustomerDomain/UserInfo
You can only use port 80 or 443 according to LINE WORKS's infrastructure security policy.
Register the request URL in User info return API under SSO > WORKS as SP in the Developer Console.

POST
Note
- During API communication, the connection timeout is 1 second and the read timeout is 3 seconds.
| Parameter | Type | Required | Description |
|---|---|---|---|
| client_id | String | Y | The client ID registered in the Developer Console |
| client_secret | String | Y | The client secret registered in the Developer Console |
| access_token | String | Y | Access token |
The response is formatted as JSON.
| Property | Type | Required | Description |
|---|---|---|---|
| user_id | String | Y (if successful) | Member ID. Logged-in user’s user key (External Key or LINE WORKS Account) |
| error | String | Y (if it fails) | An error code returned on failure |
| error_description | String | Y (if it fails) | An error description returned on failure |
| Code | Message | Description |
|---|---|---|
| 101 | access_denied | Request from unauthorized client |
| 201 | invalid_request | Missing or invalid request |
| 301 | unauthorized_client | Invalid client ID or secret |
| 303 | invalid_access | Access token verification failed |