Skip to main content

Get User's Social Associations

This endpoint retrieves all user's social associations.

info

This operation requires authentication and the user must be the same or must have the admin role to view all the associations.

info

This operation does not require authentication to view only the associations with show_in_profile set to true.

HTTP Request

GET /api/v2/user/provider/

Parameters

NameInTypeRequiredDescription
user_idqueryintegerfalseA unique integer value identifying this user

Example Request


const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/user/provider/?user_id=11',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKList of associated external providerslist(User External Provider)

Example responses

[
{
"user_id": "integer",
"provider": "string",
"ext_id": "integer",
"metadata": {
"ext_id": "integer",
"username": "string",
"email": "string"
}
},
{
"user_id": "integer",
"provider": "string",
"ext_id": "integer",
"profile_url": "string(uri)",
"show_in_profile": "boolean"
},
{...}
]