UserClouds logo
Authz

Check Attribute

This endpoint receives a source object ID, target object ID and attribute. It returns a boolean indicating whether the source object has the attribute permission on the target object.

GET
/authz/checkattribute

Query Parameters

source_object_id?string

The object for which permissions are to be checked

target_object_id?string

The object on which permissions are to be checked

attribute?string

The permission to check

Response Body

curl -X GET "https://your-tenant-name.tenant.userclouds.com/authz/checkattribute?source_object_id=string&target_object_id=string&attribute=string"
fetch("https://your-tenant-name.tenant.userclouds.com/authz/checkattribute?source_object_id=string&target_object_id=string&attribute=string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://your-tenant-name.tenant.userclouds.com/authz/checkattribute?source_object_id=string&target_object_id=string&attribute=string"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://your-tenant-name.tenant.userclouds.com/authz/checkattribute?source_object_id=string&target_object_id=string&attribute=string"

response = requests.request("GET", url)

print(response.text)
{
  "has_attribute": true,
  "path": [
    {
      "edge_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
      "object_id": "248df4b7-aa70-47b8-a036-33ac447e668d"
    }
  ]
}
Empty
Empty
Empty
Empty