Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General Information

...

ServiceAPIMethod
urac/admin/allGET


Data Models: UsersGroups

Workflow: Get All Flow

Input

...

NameSourceMandatoryTypeSpecial FormatDescription
N/AN/AN/AN/AN/AThis api does not need any parameters; it fetches both the users and groups of all the tenants.

 

Output

...

Valid Response

Code Block
languagejs
titleValid Response Sample
{
	"result": true,
	"data": {
		"users":[{"..."}],
        "groups":[{"..."}]	
	}
}

...

Code Block
languagejs
titleError Response Sample
{
    "result":false,
    "errors":{
        "codes":[405],
        "details":[
            {
                "code":405,
                "message":"Unable to find User. Please try again."
            }
        ]
    }
}



Error Codes


 

Code
Description
405Unable to find User. Please try again.
415Unable to find group.


Example (CURL)

...

Request

Code Block
languagebash
titleCalling Get All API
 > CURL -X GET http://127.0.0.1:4000/urac/admin/all 

...