--- title: "Location Actions" slug: "location-actions" description: "This is a list of Location actions in the Org Category that can be used in RapidIdentity Connect to interact with Locations for RapidIdentity Studio." tags: ["RapidIdentity ", "Connect", "Actions", "Location", "Org", "Studio"] updated: 2022-06-03T19:09:39Z published: 2022-06-03T19:09:39Z canonical: "help.rapididentity.com/location-actions" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.rapididentity.com/llms.txt > Use this file to discover all available pages before exploring further. # Location Actions ### getLocation Retrieves just one Location. | Property | Value | Description | | --- | --- | --- | | id* | string | The ID of the Location | ```actionscript location = saveLocation({"name": "Houston", "code": "111"}) location = getLocation(location.id) ``` ### getAllLocations Retrieves all Locations. | Property | Value | Description | | --- | --- | --- | | pageSize | integer | The page size (required for a paging request) | | pageNum | integer | The page number (defaults to 1 for a paging request) | ```actionscript saveLocation({"name": "Houston", "code": "111"}) locations = getAllLocations() ``` ### saveLocation Updates a Location. | Property | Value | Description | | --- | --- | --- | | id* | string | The ID of the Location | ```actionscript saveLocation({"name": "Houston", "code": "111"}) ``` ### getLocationRelationship Retrieves just one Location relationship. | Property | Value | Description | | --- | --- | --- | | id* | string | The ID of the Location relationship | ```actionscript location = saveLocation({"name": "Houston", "code": "111"}) locationRel = saveLocationRelationship({"locationId": location.id, "userId":"user_id", "role": "ADMINISTRATOR"}) locationRel = getLocationRelationship(locationRel.id) ``` ### getAllLocationRelationships Retrieves all Location Relationships. | Property | Value | Description | | --- | --- | --- | | locationId | string | The location ID for which to fetch location relationships | | userId | string | The user ID for which to fetch location relationships | | role | string | The role for which to fetch location relationships | | pageSize | integer | The page size (required for a paging request) | | pageNum | integer | The page number (defaults to 1 for a paging request) | ```actionscript location = saveLocation({"name": "Houston", "code": "111"}) locationRel = saveLocationRelationship({"locationId": location.id, "userId":"user_id", "role": "ADMINISTRATOR"}) locationRels = getAllLocationRelationships() ``` ### saveLocationRelationship Updates a Location Relationship. | Property | Value | Description | | --- | --- | --- | | id* | string | The ID of the Location Relationship | ```actionscript location = saveLocation({"name": "Houston", "code": "111"}) saveLocationRelationship({"locationId": location.id, "userId":"user_id", "role": "ADMINISTRATOR"}) ``` ### deleteLocationRelationship Deletes a Location Relationship. | Property | Value | Description | | --- | --- | --- | | id* | string | The ID of the Location Relationship | Delete by Location Relationship id. ### deleteLocation Deletes a Location. | Property | Value | Description | | --- | --- | --- | | id* | string | The ID of the Location | Delete by Location id.