Organization-wide actions can be performed by Organization Admins and Service Accounts with Admin access, allowing them to list and modify all Datasets, Ontologies, and Projects within an Organization.
A common use case is creating a Service Account with managerial privileges, enabling it to perform key administrative tasks on behalf of the Organization Admin.
Projects, Datasets, and Ontologies cannot be deleted using the SDK. To remove them, use the Encord platform.
The following script can be used by users and Service Accounts with the Admin role in their Organization to retrieve a list of all Datasets.
# Import dependenciesfrom encord.user_client import EncordUserClient# Authenticate using the path to your private key. Replace <private_key_path> with the path to your keyuser_client = EncordUserClient.create_with_ssh_private_key( ssh_private_key_path="<private_key_path>" )print (user_client.get_datasets(include_org_access=True))
The following script can be used by users and Service Accounts with the Admin role in their Organization to retrieve a list of all Ontologies.
# Import dependenciesfrom encord.user_client import EncordUserClient# Authenticate using the path to your private key. Replace <private_key_path> with the path to your keyuser_client = EncordUserClient.create_with_ssh_private_key( ssh_private_key_path="<private_key_path>" )print (user_client.get_ontologies(include_org_access=True))
The following script can be used by users and Service Accounts with the Admin role in their Organization to retrieve a list of all Projects.
# Import dependenciesfrom encord.user_client import EncordUserClient# Authenticate using the path to your private key. Replace <private_key_path> with the path to your keyuser_client = EncordUserClient.create_with_ssh_private_key( ssh_private_key_path="<private_key_path>" )print (user_client.list_projects(include_org_access=True))
The following script can be used by users and Service Accounts with the Admin role in their Organization to retrieve a list of all Cloud Integrations.
# Import dependenciesfrom encord.user_client import EncordUserClient# Authenticate using the path to your private key. Replace <private_key_path> with the path to your keyuser_client = EncordUserClient.create_with_ssh_private_key( ssh_private_key_path="<private_key_path>" )print (user_client.get_cloud_integrations(include_org_access=True))
The following scripts can be used by users and Service Accounts to list folders belonging to your Organization.
# Import dependenciesfrom encord.user_client import EncordUserClient# Authenticate using the path to your private key. Replace <private_key_path> with the path to your keyuser_client = EncordUserClient.create_with_ssh_private_key( ssh_private_key_path="<private_key_path>" )print (user_client.list_storage_folders(include_org_access=True))
The following script can be used by users and Service Accounts to find all files belonging to your Organization.
All Files
# Import dependenciesfrom encord.user_client import EncordUserClient# Authenticate using the path to your private key. Replace <private_key_path> with the path to your keyuser_client = EncordUserClient.create_with_ssh_private_key( ssh_private_key_path="<private_key_path>" )print (user_client.find_storage_items(include_org_access=True))