2017-03-21 22:24:29 +01:00
|
|
|
---
|
2017-03-21 22:50:17 +01:00
|
|
|
layout: "api"
|
|
|
|
page_title: "Users API"
|
|
|
|
sidebar_current: "docs-enterprise-api-users"
|
|
|
|
description: |-
|
|
|
|
Users are both users and organizations in Terraform Enterprise. They are the parent resource of all resources.
|
2017-03-21 22:24:29 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
# Users API
|
|
|
|
|
2017-03-21 22:50:17 +01:00
|
|
|
Users are both users and organizations in Terraform Enterprise. They are the
|
2017-03-21 22:24:29 +01:00
|
|
|
parent resource of all resources.
|
|
|
|
|
|
|
|
Currently, only the retrieval of users is avaiable on the API. Additionally,
|
2017-03-23 00:23:08 +01:00
|
|
|
only Vagrant box resources will be listed. Boxes will
|
2017-03-21 22:24:29 +01:00
|
|
|
be returned based on permissions over the organization, or user.
|
|
|
|
|
|
|
|
### Actions
|
|
|
|
|
|
|
|
The following actions can be perfomed on this resource.
|
|
|
|
|
|
|
|
<dl>
|
|
|
|
<dt>Show</dt>
|
|
|
|
<dd>GET /api/v1/user/:username</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
### Examples
|
|
|
|
|
|
|
|
#### Retrieve a user
|
|
|
|
|
|
|
|
$ curl %{ATLAS_URL}/api/v1/user/%{DEFAULT_USERNAME} \
|
|
|
|
-H "X-Atlas-Token: $ATLAS_TOKEN"
|