{
  "opencollection": "1.0.0",
  "info": {
    "name": "Asana Allocations Users API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Users",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Asana Get multiple users",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.asana.com/api/1.0/users",
            "params": [
              {
                "name": "workspace",
                "value": "1331",
                "type": "query",
                "description": "The workspace or organization ID to filter users on."
              },
              {
                "name": "team",
                "value": "15627",
                "type": "query",
                "description": "The team ID to filter users on."
              },
              {
                "name": "opt_pretty",
                "value": "true",
                "type": "query",
                "description": "Provides “pretty” output.\nProvides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging."
              },
              {
                "name": "limit",
                "value": "50",
                "type": "query",
                "description": "Results per page.\nThe number of objects to return per page. The value must be between 1 and 100."
              },
              {
                "name": "offset",
                "value": "eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9",
                "type": "query",
                "description": "Offset token.\nAn offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results.\n*Note: You can only pass in an offset that was returned to you via a previously paginated request.*"
              },
              {
                "name": "opt_fields",
                "value": "email,name,offset,path,photo,photo.image_1024x1024,photo.image_128x128,photo.image_21x21,photo.image_27x27,photo.image_36x36,photo.image_60x60,uri,workspaces,workspaces.name",
                "type": "query",
                "description": "This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.asana.com/-/oauth_authorize",
              "accessTokenUrl": "https://app.asana.com/-/oauth_token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns the user records for all users in all workspaces and organizations accessible to the authenticated user. Accepts an optional workspace ID parameter.\nResults are sorted by user ID."
        },
        {
          "info": {
            "name": "Asana Get a user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.asana.com/api/1.0/users/:user_gid",
            "params": [
              {
                "name": "user_gid",
                "value": "me",
                "type": "path",
                "description": "A string identifying a user. This can either be the string \"me\", an email, or the gid of a user."
              },
              {
                "name": "opt_pretty",
                "value": "true",
                "type": "query",
                "description": "Provides “pretty” output.\nProvides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging."
              },
              {
                "name": "opt_fields",
                "value": "email,name,photo,photo.image_1024x1024,photo.image_128x128,photo.image_21x21,photo.image_27x27,photo.image_36x36,photo.image_60x60,workspaces,workspaces.name",
                "type": "query",
                "description": "This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.asana.com/-/oauth_authorize",
              "accessTokenUrl": "https://app.asana.com/-/oauth_token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns the full user record for the single user with the provided ID."
        },
        {
          "info": {
            "name": "Asana Get a user's favorites",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.asana.com/api/1.0/users/:user_gid/favorites",
            "params": [
              {
                "name": "user_gid",
                "value": "me",
                "type": "path",
                "description": "A string identifying a user. This can either be the string \"me\", an email, or the gid of a user."
              },
              {
                "name": "opt_pretty",
                "value": "true",
                "type": "query",
                "description": "Provides “pretty” output.\nProvides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging."
              },
              {
                "name": "limit",
                "value": "50",
                "type": "query",
                "description": "Results per page.\nThe number of objects to return per page. The value must be between 1 and 100."
              },
              {
                "name": "offset",
                "value": "eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9",
                "type": "query",
                "description": "Offset token.\nAn offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results.\n*Note: You can only pass in an offset that was returned to you via a previously paginated request.*"
              },
              {
                "name": "resource_type",
                "value": "",
                "type": "query",
                "description": "The resource type of favorites to be returned."
              },
              {
                "name": "workspace",
                "value": "1234",
                "type": "query",
                "description": "The workspace in which to get favorites."
              },
              {
                "name": "opt_fields",
                "value": "name,offset,path,uri",
                "type": "query",
                "description": "This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.asana.com/-/oauth_authorize",
              "accessTokenUrl": "https://app.asana.com/-/oauth_token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns all of a user's favorites in the given workspace, of the given type.\nResults are given in order (The same order as Asana's sidebar)."
        },
        {
          "info": {
            "name": "Asana Get users in a team",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.asana.com/api/1.0/teams/:team_gid/users",
            "params": [
              {
                "name": "team_gid",
                "value": "159874",
                "type": "path",
                "description": "Globally unique identifier for the team."
              },
              {
                "name": "opt_pretty",
                "value": "true",
                "type": "query",
                "description": "Provides “pretty” output.\nProvides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging."
              },
              {
                "name": "offset",
                "value": "eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9",
                "type": "query",
                "description": "Offset token.\nAn offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results.\n*Note: You can only pass in an offset that was returned to you via a previously paginated request.*"
              },
              {
                "name": "opt_fields",
                "value": "email,name,photo,photo.image_1024x1024,photo.image_128x128,photo.image_21x21,photo.image_27x27,photo.image_36x36,photo.image_60x60,workspaces,workspaces.name",
                "type": "query",
                "description": "This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.asana.com/-/oauth_authorize",
              "accessTokenUrl": "https://app.asana.com/-/oauth_token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns the compact records for all users that are members of the team.\nResults are sorted alphabetically and limited to 2000. For more results use the `/users` endpoint."
        },
        {
          "info": {
            "name": "Asana Get users in a workspace or organization",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.asana.com/api/1.0/workspaces/:workspace_gid/users",
            "params": [
              {
                "name": "workspace_gid",
                "value": "12345",
                "type": "path",
                "description": "Globally unique identifier for the workspace or organization."
              },
              {
                "name": "opt_pretty",
                "value": "true",
                "type": "query",
                "description": "Provides “pretty” output.\nProvides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging."
              },
              {
                "name": "offset",
                "value": "eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9",
                "type": "query",
                "description": "Offset token.\nAn offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results.\n*Note: You can only pass in an offset that was returned to you via a previously paginated request.*"
              },
              {
                "name": "opt_fields",
                "value": "email,name,photo,photo.image_1024x1024,photo.image_128x128,photo.image_21x21,photo.image_27x27,photo.image_36x36,photo.image_60x60,workspaces,workspaces.name",
                "type": "query",
                "description": "This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.asana.com/-/oauth_authorize",
              "accessTokenUrl": "https://app.asana.com/-/oauth_token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns the compact records for all users in the specified workspace or organization.\nResults are sorted alphabetically and limited to 2000. For more results use the `/users` endpoint."
        }
      ]
    }
  ],
  "bundled": true
}