Get the User resource type
curl --request GET \
--url https://app.trelica.com/api/scim/v2/ResourceTypes/Userimport requests
url = "https://app.trelica.com/api/scim/v2/ResourceTypes/User"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.trelica.com/api/scim/v2/ResourceTypes/User', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.trelica.com/api/scim/v2/ResourceTypes/User",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trelica.com/api/scim/v2/ResourceTypes/User"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.trelica.com/api/scim/v2/ResourceTypes/User")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trelica.com/api/scim/v2/ResourceTypes/User")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:ResourceType"
],
"name": "User",
"endpoint": "/api/scim/v2/User",
"description": "User Account",
"schema": "urn:ietf:params:scim:schemas:core:2.0:User",
"meta": {
"location": "https://app.trelica.com/api/scim/v2/ResourceTypes/User",
"resourceType": "ResourceType"
}
}SCIM
Get the User resource type
Returns the SCIM 2.0 “User” resource type definition (RFC 7643).
GET
/
api
/
scim
/
v2
/
ResourceTypes
/
User
Get the User resource type
curl --request GET \
--url https://app.trelica.com/api/scim/v2/ResourceTypes/Userimport requests
url = "https://app.trelica.com/api/scim/v2/ResourceTypes/User"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.trelica.com/api/scim/v2/ResourceTypes/User', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.trelica.com/api/scim/v2/ResourceTypes/User",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trelica.com/api/scim/v2/ResourceTypes/User"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.trelica.com/api/scim/v2/ResourceTypes/User")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.trelica.com/api/scim/v2/ResourceTypes/User")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:ResourceType"
],
"name": "User",
"endpoint": "/api/scim/v2/User",
"description": "User Account",
"schema": "urn:ietf:params:scim:schemas:core:2.0:User",
"meta": {
"location": "https://app.trelica.com/api/scim/v2/ResourceTypes/User",
"resourceType": "ResourceType"
}
}Response
200 - application/json
OK
The service-provider-assigned SCIM resource ID. Server-controlled; ignored on requests.
An identifier for the resource as defined by the provisioning client.
Resource metadata (created/last-modified timestamps, resource type, location). Server-controlled; ignored on requests.
Show child attributes
Show child attributes
Was this page helpful?
⌘I