Retrieve User Permission
curl --request GET \
--url https://auth.sandbox.lerian.net/v1/permissions \
--header 'Authorization: <authorization>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://auth.sandbox.lerian.net/v1/permissions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://auth.sandbox.lerian.net/v1/permissions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://auth.sandbox.lerian.net/v1/permissions"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text){
"accounts": [
"get",
"post",
"patch",
"delete"
],
"applications": [
"get",
"post",
"delete"
],
"asset-rates": [
"get",
"patch"
],
"assets": [
"get",
"post",
"patch",
"delete"
],
"balances": [
"get",
"patch",
"delete"
],
"groups": [
"get"
],
"ledgers": [
"get",
"post",
"patch",
"delete"
],
"operations": [
"get",
"patch"
],
"organizations": [
"get",
"post",
"patch",
"delete"
],
"portfolios": [
"get",
"post",
"patch",
"delete"
],
"segments": [
"get",
"post",
"patch",
"delete"
],
"transactions": [
"get",
"post",
"patch"
],
"users": [
"get",
"post",
"patch",
"delete"
],
"users/password": [
"patch"
]
}Retrieve User Permission
Use this endpoint to retrieve all the permissions that a user has based on the access_token. This endpoint is used by Midaz Console to verify the features that the user has access to.
GET
/
v1
/
permissions
Retrieve User Permission
curl --request GET \
--url https://auth.sandbox.lerian.net/v1/permissions \
--header 'Authorization: <authorization>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://auth.sandbox.lerian.net/v1/permissions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://auth.sandbox.lerian.net/v1/permissions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://auth.sandbox.lerian.net/v1/permissions"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text){
"accounts": [
"get",
"post",
"patch",
"delete"
],
"applications": [
"get",
"post",
"delete"
],
"asset-rates": [
"get",
"patch"
],
"assets": [
"get",
"post",
"patch",
"delete"
],
"balances": [
"get",
"patch",
"delete"
],
"groups": [
"get"
],
"ledgers": [
"get",
"post",
"patch",
"delete"
],
"operations": [
"get",
"patch"
],
"organizations": [
"get",
"post",
"patch",
"delete"
],
"portfolios": [
"get",
"post",
"patch",
"delete"
],
"segments": [
"get",
"post",
"patch",
"delete"
],
"transactions": [
"get",
"post",
"patch"
],
"users": [
"get",
"post",
"patch",
"delete"
],
"users/password": [
"patch"
]
}Headers
The authorization token in the 'Bearer ' format.
Response
Indicates that the resource was successfully created and the operation was completed as expected.
A list of APIs or resources the user can access, each paired with the allowed actions they can perform.
Was this page helpful?

