The GroupShare API Powershell Toolkit allows users to script the REST API that is available for GroupShare. The purpose of the toolkit is to automate various operations by using the powershell console.
Expand
- Getting Started
- Installation
- Configuring the Scripts
- Running the Sample_Roundtrip Script
- Importing and Using PowerShell Modules
- Accessing Module Documentation
- Accessing and Manipulating Resources
- Understanding the PSObject Parameters
- Ensuring File Permissions for Toolkit Files
- Function Documentation
- Contribution
- Issues
- Changes
To run the scripts, ensure you have the following:
- PowerShell Version 7.4 or Higher
- If you need to install PowerShell 7.4, follow the instructions provided here.
- A GroupShare Server Available
- Ensure you have access to a GroupShare server, as the scripts will interact with it for various operations.
For a quicker and more streamlined installation, you can use the MSI installer. This method automates the entire process, saving you time and ensuring all necessary files are placed in the correct locations.
-
Download the MSI Installer
- Download the MSI installer from the official releases page.
-
Run the MSI Installer
- Double-click the downloaded MSI file to begin the installation process.
- Follow the on-screen prompts to install the toolkit. The installer will automatically place the necessary scripts and modules in the correct directories.
-
Verify Installation
- After the installation is complete, verify that the toolkit has been correctly installed by checking the installation path.
- Download the Files
- Ensure you have downloaded all necessary files for the toolkit, including the sample roundtrip scripts and PowerShell modules. These files are available at the official releases page. Be sure to download the latest release to ensure you have the most up-to-date version of the toolkit.
- After downloading, you may need to unblock the zip file. For instructions on how to unblock files, see Ensuring File Permissions for Toolkit File.
- Create Required Folders
- Create the following folders if they do not already exist:
C:\users\{your_user_name}\Documents\PowerShell
C:\users\{your_user_name}\Documents\PowerShell\Modules
- Create the following folders if they do not already exist:
- Copy Sample Roundtrip Script
- Copy the
Sample_Roundtrip.ps1
scripts into thePowershell
folder: - Ensure these files are placed directly in
C:\Users\{your_user_name}\Documents\PowerShell
.
- Copy the
- Copy PowerShell Modules
- Copy the PowerShell modules into the
Modules
folder:...\PowerShell\Modules\AuthenticationHelper
...\PowerShell\Modules\BackgroundTaskHelper
...\PowerShell\Modules\ProjectServerHelper
...\PowerShell\Modules\ResourcesHelper
...\PowerShell\Modules\UserManagerHelper
...\PowerShell\Modules\SystemConfigurationHelper
- Ensure each module folder contains its respective
.psd1
and.psm1
files.
- Copy the PowerShell modules into the
- Verify File Locations
- Confirm the locations of the files:
- The roundtrip script should be in
C:\Users\{your_user_name}\Documents\PowerShell
. - Modules should be in
C:\Users\{your_user_name}\Documents\PowerShell\Modules
with appropriate subfolders for each module.
- The roundtrip script should be in
- Confirm the locations of the files:
Before running the scripts, you need to configure the connection to your GroupShare server. This involves setting the server details either in the module files or directly during module import, and configuring the Sample_Roundtrip.ps1
script with your server and authentication details.
- Open Each
.psm1
File: Locate the.psm1
files in yourModules
folder. - Edit the
$server
Parameter: At the top of each.psm1
file, set the$server
variable to your GroupShare server URI:$server = "https://your.groupshare.server/uri"
- Save the Changes: Save each
.psm1
file after updating the$server
parameter.
- Open PowerShell: Launch PowerShell 7.4 or higher.
- Import Modules with
ArgumentList
: When importing the modules, you can specify the server URI directly using the-ArgumentList
parameter:Import-Module -Name AuthenticationHelper -ArgumentList "https://your.groupshare.server/uri" Import-Module -Name BackgroundTaskHelper -ArgumentList "https://your.groupshare.server/uri" Import-Module -Name ProjectServerHelper -ArgumentList "https://your.groupshare.server/uri" Import-Module -Name ResourcesHelper -ArgumentList "https://your.groupshare.server/uri" Import-Module -Name SystemConfigurationHelper -ArgumentList "https://your.groupshare.server/uri" Import-Module -Name UserManagerHelper -ArgumentList "https://your.groupshare.server/uri"
-
Option 1: Use this if you want a persistent server setting in each module. This is helpful if you always use the same server.
-
Option 2: Use this if you need flexibility to change the server URI dynamically without modifying the module files.
To use the Sample_Roundtrip.ps1
script, you need to configure it with your actual server details and authentication credentials. Follow these steps:
-
Open the
Sample_Roundtrip.ps1
Script- Locate the Script: Find the
Sample_Roundtrip.ps1
file in yourPowershell
folder. - Edit the Script: Open the file in a text editor of your choice.
- Locate the Script: Find the
-
Update Server and Authentication Details
- Set the Server URL: Update the
$server
variable with the URL of your GroupShare server:$server = "https://your.groupshare.server/uri"
- Set the Username and Password: Replace the placeholders for
$userName
and$password
with your actual GroupShare credentials:$userName = "your_username@example.com" $password = "your_password"
Replace the following example values with your actual details:
# Define the server URL, username, and password for authentication $server = "https://your.groupshare.server/uri" $userName = "your_username@example.com" $password = "your_password"
- Set the Server URL: Update the
-
Verify and Update Module Paths (If Needed)
Before saving changes, ensure that the PowerShell modules are correctly loaded. Follow these steps to verify module availability and update paths if necessary:
- Check Module Availability: Use the
Get-Module
command to list available modules and verify that each required module is present:Get-Module -ListAvailable -Name AuthenticationHelper, BackgroundTaskHelper, ProjectServerHelper, ResourcesHelper, SystemConfigurationHelper, UserManagerHelper
- Update Module Paths in the Script: If any modules are not available in the default environment path, update the
Sample_Roundtrip.ps1
script with the full paths to the modules. Locate the section where modules are imported and modify it as follows:ReplaceWrite-Host "`nLoading required modules into the PowerShell session..." -ForegroundColor Cyan Import-Module -Name "Path_to_AuthenticationHelper" -ArgumentList $server Import-Module -Name "Path_to_BackgroundTaskHelper" -ArgumentList $server Import-Module -Name "Path_to_ProjectServerHelper" -ArgumentList $server Import-Module -Name "Path_to_ResourcesHelper" -ArgumentList $server Import-Module -Name "Path_to_SystemConfigurationHelper" -ArgumentList $server Import-Module -Name "Path_to_UserManagerHelper" -ArgumentList $server
"Path_to_Module"
with the actual path where each module is located. For example:Import-Module -Name "C:\Users\your_user_name\Documents\PowerShell\Modules\AuthenticationHelper" -ArgumentList $server
- Check Module Availability: Use the
-
Save the Changes
- Save the File: After updating the values, save the changes to the
Sample_Roundtrip.ps1
file.
- Save the File: After updating the values, save the changes to the
This section assumes that you have already configured the Sample_Roundtrip.ps1
script and set up your environment as described in the previous sections. To run the script, follow these steps:
- Open PowerShell 7.4 or Higher
- Launch PowerShell 7.4 or a later version.
- Set the Execution Policy (If Needed)
- If you haven’t unblocked the files as described in the Ensuring File Permissions for Toolkit Files section, you may need to set the execution policy to Unrestricted to allow script execution. Execute the following command:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
- This command permits PowerShell script execution without requiring local Windows admin privileges and should be executed once per machine and user profile. Note: If you have already unblocked the files, setting the execution policy may not be necessary.
- If you haven’t unblocked the files as described in the Ensuring File Permissions for Toolkit Files section, you may need to set the execution policy to Unrestricted to allow script execution. Execute the following command:
- Navigate to the Script Location
- Use the
cd
command to change your directory to the location where theSample_Roundtrip.ps1
script is saved:cd C:\Users\{your_user_name}\Documents\Powershell
- Use the
- Run the Script
- Execute the script using the following command
.\Sample_Roundtrip.ps1
- Execute the script using the following command
Before using the functions provided by the modules, you need to ensure they are correctly imported into your PowerShell session. This section outlines the steps to import the modules based on their availability in your environment.
- Check Module Availability
- Use the
Get-Module
command to verify if the required modules are available in your PowerShell environment:Get-Module -ListAvailable -Name AuthenticationHelper, BackgroundTaskHelper, ProjectServerHelper, ResourcesHelper, SystemConfigurationHelper, UserManagerHelper
- If the modules are listed, they are available in the environment path.
- Use the
- Import Modules from Environment Path
- If the modules are available in the environment path, you can import them directly by name. For example:
Import-Module -Name AuthenticationHelper -ArgumentList $server Import-Module -Name BackgroundTaskHelper -ArgumentList $server Import-Module -Name ProjectServerHelper -ArgumentList $server Import-Module -Name ResourcesHelper -ArgumentList $server Import-Module -Name SystemConfigurationHelper -ArgumentList $server Import-Module -Name UserManagerHelper -ArgumentList $server
- If the modules are available in the environment path, you can import them directly by name. For example:
- Import Modules from Specific Path
- If the modules are not available in the environment path, you will need to import them from their specific location. Use the full path to the module when importing. For example:
Import-Module -Name "C:\Users\{your_user_name}\Documents\PowerShell\Modules\AuthenticationHelper" -ArgumentList $server Import-Module -Name "C:\Users\{your_user_name}\Documents\PowerShell\Modules\BackgroundTaskHelper" -ArgumentList $server Import-Module -Name "C:\Users\{your_user_name}\Documents\PowerShell\Modules\ProjectServerHelper" -ArgumentList $server Import-Module -Name "C:\Users\{your_user_name}\Documents\PowerShell\Modules\ResourcesHelper" -ArgumentList $server Import-Module -Name "C:\Users\{your_user_name}\Documents\PowerShell\Modules\SystemConfigurationHelper" -ArgumentList $server Import-Module -Name "C:\Users\{your_user_name}\Documents\PowerShell\Modules\UserManagerHelper" -ArgumentLis $server
- If the modules are not available in the environment path, you will need to import them from their specific location. Use the full path to the module when importing. For example:
If you want to add the module path permanently so that it remains available across PowerShell sessions and system reboots, follow these steps:
-
Open PowerShell 7 as Administrator
- Right-click on the PowerShell 7 icon and select "Run as administrator."
-
Add the Directory to the Environment Variable
- Execute the following commands to add your module path to the $env:PSModulePath environment variable:
$modulePath = "C:\Users\{Your_username}\Documents\Powershell\Modules" [System.Environment]::SetEnvironmentVariable("PSModulePath", "$env:PSModulePath;$modulePath", [System.EnvironmentVariableTarget]::User)
- Replace
{Your_username}
with your actual username.
- Execute the following commands to add your module path to the $env:PSModulePath environment variable:
-
Confirm the Path Has Been Added Permanently
- To verify that the path has been successfully added, run:
$env:PSModulePath
- You should see your new path included in the output.
Note: If you installed the toolkit using the MSI installer, the installation path should already be automatically added to your environment path, and you won’t need to manually add it.
- To verify that the path has been successfully added, run:
Once the modules are imported, you can start using their functions in PowerShell 7. Each module provides specific cmdlets and functions that you can call directly in your session. For example:
- List available functions in a module:
Get-Command -Module AuthenticationHelper
- Run a function from a module:
Replace
SignIn -userName "{your_username}" -password "{your_password}"
SignIn
with any cmdlet or function provided by the module you wish to use. Consult the module's documentation or useGet-Help
for details on available functions.
The toolkit has been documented with Get-Help
to provide detailed information on the available cmdlets and functions. Follow these steps to access the documentation:
-
Ensure Modules Are Loaded
- Before accessing the help documentation, make sure that the necessary modules are imported into your PowerShell 7 session. You can do this by running:
Import-Module -Name AuthenticationHelper -ArgumentList $server Import-Module -Name BackgroundTaskHelper -ArgumentList $server Import-Module -Name ProjectServerHelper -ArgumentList $server Import-Module -Name ResourcesHelper -ArgumentList $server Import-Module -Name SystemConfigurationHelper -ArgumentList $server Import-Module -Name UserManagerHelper -ArgumentList $server
If modules are not in the environment path, use the full path for importing as needed.
- Before accessing the help documentation, make sure that the necessary modules are imported into your PowerShell 7 session. You can do this by running:
-
Access Documentation
- Once the modules are loaded, you can use
Get-Help
to access the documentation for any cmdlet or function provided by the module. For example:Get-Help SignIn
- Replace
SignIn
with the name of the cmdlet or function you want to learn more about.
- Once the modules are loaded, you can use
-
Explore Additional Help Topics
- To view a list of available cmdlets and functions in a module, use:
Get-Command -Module AuthenticationHelper
- For more detailed information on each cmdlet or function, including examples and parameter descriptions, use:
or
Get-Help "Function-Name" -Detailed
Get-Help "Function-Name" -Examples
- To view a list of available cmdlets and functions in a module, use:
By using Get-Help
, you can access comprehensive documentation and examples for all the functions available in the toolkit, aiding you in effectively utilizing the provided modules.
Many functions in this toolkit require authorization to access various endpoints. This is facilitated using the Signin
function from the AuthenticationHelper module, which provides a string authorization token.
The toolkit's functions frequently utilize PowerShell objects (PSObject
) to manipulate or retrieve resources. This design allows for flexibility in managing and interacting with data. Here’s how PSObject
is used:
-
Function Parameters: Many functions accept
PSObject
as input parameters. This enables you to use objects generated by the toolkit's functions or create custom PowerShell objects dynamically and pass them as parameters. -
Data Retrieval and Manipulation: When retrieving data, functions return
PSObject
instances. These objects can be manipulated or used as input for other functions, providing a seamless way to handle data across different operations.
In the next subsections, you can see the objects information requested by some of the functions and the functions that are returning them.
Properties required | Can be retrieved from |
---|---|
Id | Get-AllBackgroundTasks |
Properties required | Can be retrieved from |
---|---|
ProjectId | Get-AllProjects |
Name | Get-Project |
Properties required | Can be retrieved from |
---|---|
UniqueId | Get-AllOrganizations |
Path | Get-Organization |
New-Organization | |
Update-Organization |
Properties required | Can be retrieved from |
---|---|
Id | Get-AllProjectTemplates |
Name | Get-ProjectTemplate |
Description | New-ProjectTemplate |
OrganizationId | Update-ProjectTemplate |
Properties required | Can be retrieved from |
---|---|
ProjectPhaseId | Get-ProjectPhases |
Properties required | Can be retrieved from |
---|---|
FileUniqueId | Get-FilesPhasesFromProject |
CurrentPhaseId | |
DueDate |
Properties required | Can be retrieved from |
---|---|
UniqueId | Get-ProjectFilesInfo |
Properties required | Can be retrieved from |
---|---|
ContainerId | Get-AllContainers |
DisplayName | Get-Container |
New-Container | |
Update-Container |
Properties required | Can be retrieved from |
---|---|
Name | Get-AllTMs |
TranslationMemoryId | Get-TM |
ContainerId | Update-TM |
OwnerId | New-TM |
FuzzyIndexes | |
Fields | |
Copyright | |
Location | |
Description | |
Recognizers | |
LanguageDirections |
Properties required | Can be retrieved from |
---|---|
Source | Get-LanguageDirections |
Target | - |
Properties required | Can be retrieved from |
---|---|
FieldTemplateId | Get-AllFieldTemplates |
Get-FieldTemplate | |
New-FieldTemplate | |
Update-FieldTemplate |
Properties required | Can be retrieved from |
---|---|
UseAndCondition | Get-DefaultSegmentLockingSettings |
TranslationStatuses | Get-SegmentLockingSettings |
TranslationOrigins | |
Score | |
MTQE | |
TargetLanguage |
Properties required | Can be retrieved from |
---|---|
Name | Get-Termbase |
Languages |
Properties required | Can be retrieved from |
---|---|
Name | Get-FieldDefinition |
Type | |
Values |
Properties required | Can be retrieved from |
---|---|
DatabaseServerId | Get-AllDbServers |
Name | Get-DbServer |
Host | New-DbServer |
Description | Update-DbServer |
OwnerId |
Properties required | Can be retrieved from |
---|---|
UniqueId | Get-AllUsers |
Name | Get-AllUsersFromRole |
Password | Get-User |
DisplayName | New-User |
EmailAddress | Update-User |
PhoneNumber | Add-TranslationProviderToUser |
OrganizationId | Remove-TranslationProviderFromUser |
UserType |
Properties required | Can be retrieved from |
---|---|
UniqueId | Get-AllRoles |
Permissions | Get-Role |
Name | New-Role |
IsProtected | Update-Role |
Properties required | Can be retrieved from |
---|---|
UniqueId | Get-Permissions |
FullName | |
DisplayName | |
Description | |
ResourceName | |
PermissionName |
Properties required | Can be retrieved from |
---|---|
Id | Get-AllOrganizationResources |
Properties required | Can be retrieved from |
---|---|
ProviderSettingId | Get-UserTranslationProvider |
In this chapter, you will find all the available functions and their purpose.
For the functions that requires psobject
types, you can navigate to the Object structure.
Function Name | Syntax | Description |
---|---|---|
SignIn | [[-userName] <String>] [[-password] <String>] |
This function is generating an authorization key as a string, which can be saved and used for all the other functions that need to access sensitive information from the server Parameters userName - Mandatory Parameter - Represents the username used for logging on the GroupShare server password - Mandatory Parameter - Represents the password used for logging on the GroupShare server |
Function Name | Syntax | Description |
---|---|---|
Get-AllBackgroundTasks | [-authorizationToken] <String> [-startDate] <String> [-endDate] <String> [[-maxLimit] <Int32>] [[-statuses] <Int32[]>] [[-types] <Int32[]>] [[-sortProperty] <String>] [[-sortDirection] <String>] |
Returns all the background tasks. By default, this function returns the first 2000 found items for all statuses and types. In order to add a custom filter for the items optional parameters must be provided Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources startDate and endDate - Optional Parameters - Should be in this format YYYY-MM-DD When date filter is required, both parameters should be provided maxLimit - Optional Parameter - Represents the maximum number of items that should be returned, default is 2000 statuses - Optional Parameter - Background Tasks with the specified statuses will be returned; the default parameter includes all statuses. To add status filter this parameter should be an array with one or more of the following values: 1, 2, 4, 8, 16 each of them representing: 1 - Queued 2 - InProgress 4 - Canceled 8 - Failed 16 - Done types - Optional Parameter - Only the Background Tasks with the given types will be returned; the default parameter includes all types. To add this filter, this parameter should be an array with one or more of the following values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 20, 22, 23, 24, 25, 26, 27 each of them representing: 1 - ArchiveProject 2 - MonitorDueDate 3 - DetachProjects 4 - DetachProject 5 - DeleteProject 6 - CleanSyncPackages 7 - PublishProject 8 - CreateProject 9 - ApplyTM 10 - BcmImport 11 - DeleteTU 12 - ImportTM 13 - ExportTM 14 - RecomputeStats 15 - ReindexTM 18 - FullAlign 20 - AutoReindex 22 - UpdateTm 23 - GeneratePTAReport 24 - DeleteOrganization 25 - PackageExport 26 - PackageImport 27 - EditTU sortProperty and sortDirection - Optional parameters - Represent the sort method and property for the filter Both parameters are required when sorting is required sortProperty should be one of the following values: Name Status CreatedAt UpdatedAt IsGsTask sortDirection should be one of the following values: ASC DESC |
Remove-BackgroundTasks | [-authorizationToken] <String> [-backgroundTasks] <PSObject[]> |
Removes the specified background tasks Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources backgroundTasks - Mandatory Parameter - An Array of BackgroundTasks objects |
Function Name | Syntax | Description |
---|---|---|
Get-AllProjects | [-authorizationToken] <String> [[-limit] <Int32>] [[-showAll] <Boolean>] [[-organization] <PSObject>] [[-publishStart] <String>] [[-publishEnd] <String>] [[-dueStart] <String>] [[-dueEnd] <String>] [[-statuses] <String[]>] [[-defaultPublishDates] <Boolean>] [[-defaultDueDates] <Boolean>] [[-sortProperty] <String>] [[-sortDirection] <String>] [<CommonParameters>] |
Returns a list all the projects on the server By default, this function returns the project that have the statuses Pending , Completed and In Progress from the default dates, similarly to the Web UI base filter. Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources limit - Optional Parameter - By default, it is the maximum integer number showAll - Optional Parameter - Boolean Value indicating whether this function should list all projects or the projects from the specified organization organization - Optional Parameter - An organization object. If organization filter is required, the showall parameter should be false When provided it will display projects from this organization. publishStart and publishEnd - Optional Parameters - Represents the publish dates of the project. Should be in the format YYYY-MM-DD When one or both parameters are provided, the defaultPublishDates parameter should be set to false dueStart and dueEnd - Optional Parameters - Represents the Projects Due date. Should be in the format YYYY-MM-DD When one or both parameters are provided, the defaultDueDates parameter should be set to false statuses - Optional Parameter - Represents the Statuses of the projects that should be listed Should be one or many of the following values: Pending In Progress Completed Archived Detaches defaultPublishDates - Optional Parameter - Boolean indicating whether the publish dates should be the default ones (the default dates from the Web Interface) defaultDueDates - Optional Parameter - Boolean indicating whether the due dates should be the default ones (the default dates from the Web Interface) sortProperty and sortDirection - Optional Parameters - Represent the sorting method for projects. When sorting filter is requried, both parameters should be provided sortProperty should be one of the following values ProjectName PublishAt DueDate Status SourceLanguage OrganizationPath IsSecure sortDirection should be ASC DESC |
Get-Project | [-authorizationToken] <String> [[-projectName] <String>] [[-projectId] <String>] |
Returns the project that matches provided parameters When using this function projectName and/or projectId parameters should be provided. Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources projectName - Optional Parameter - When this is provided, it returns the project that matches the name. projectId - Optional Parameter - When provided is searching the project by the id. If this parameter is provided together with the projectName, this method searches the project that match the specified id. If a project is found, it will be returned, otherwise the function will display a not found message on the console and search for the project with the given name |
New-Project | [-authorizationToken] <String> [-projectName] <String> [-organization] <PSObject> [-projectTemplate] <PSObject> [-filesPath] <String> [[-description] <String>] [[-dueDate] <String>] [[-restrictFileDownloads] <Boolean>] [[-referenceProjects] <PSObject>] |
Schedule the process of creating a project with the given parameters Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources projectName - Mandatory Parameter - Represents the name of the project organization - Mandatory Parameter - Represents an organization object projectTemplate - Mandatory Parameter - Represents the projectTemplate object used for creating the project filesPath - Mandatory Parameter - Represents the physical location of the files on the computer. The file can be a single translatable file, a folder or a zip file. Files in a zip archive are handled according to the folder structure of the archive: Files in an optional "ReferenceFiles" folder are added as reference files. Files in an optional "PerfectMatchFiles" folder are used for perfect match. If a "SourceFiles" folder exists, the files therein are treated as source files. If no "SourceFiles" folder exists, instead all files in the root of the archive are treated as source files (except if in any of the other folders mentioned in this description). If further sub-folders exist in the archive, the files are added to project folders according to their path in "SourceFiles", "ReferenceFiles" or root. To add an sdlxliff file for PerfectMatch for a given source file, the file should be located in the archive at 'PerfectMatchFiles/[target-language-code]/[file path], e.g. 'PerfectMatchFiles/fr-fr/a.docx.sdlliff', or 'PerfectMatchFiles/en-us/folder/a.docx.sdlliff'. To use several PerfectMatch files for a source file, add the files to folders 'PerfectMatchFiles', 'PerfectMatchFiles_1', 'PerfectMatchFiles_2'. description - Optional Parameter - Represents the project description dueDate - Represents the project due date. Should be in the format YYYY-MM-DD or YYYY-MM-DDThh:mm restrictFileDownloads - Boolean Value indicating whether the files should be allowed for download or not referenceProjects - An array of project objects for project reference. |
Remove-Project | [-authorizationToken] <String> [-projectToRemove] <PSObject> |
Removes the specified project authorizationToken - Mandatory Parameter - Required for accessing sensitive resources projectToRemove - Mandatory Parameter - The project object to remove |
Get-ProjectPhases | [-authorizationToken] <String> [-project] <PSObject> |
Returns the project phases for the specified project Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object |
Get-ProjectSettings | [-authorizationToken] <String> [-project] <PSObject> |
Returns the settings for the specified project Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object |
Get-FilesPhasesFromProject | [-authorizationToken] <String> [-project] <PSObject> |
Returns all the files from the phases view Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object |
Update-ProjectStatus | [-authorizationToken] <String> [-project] <PSObject> [-status] <String> |
Changes the project status to completed or started Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object status - Mandatory Parameter - Represents the new project status. This value should be Completed or Started |
Update-ProjectFilesPhase | [-authorizationToken] <String> [-project] <PSObject> [-files] <PSObject[]> [-newPhase] <PSObject> [[-comment] <String>] |
Changes the active phase of the given files object Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object files - Mandatory Parameter - An array of files objects that will be updated newPhase - The phase object representing the new active phase comment - Optional Parameter - The update comment |
Update-ProjectFilesPlanning | [-authorizationToken] <String> [-project] <PSObject> [-files] <PSObject[]> [[-updatedAssignees] <PSObject[]>] [[-deliveryAt] <String>] [[-comment] <String>] |
Changes the Assignees and/or the delivery date for the specified files Parameters****authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object files - Mandatory Parameter - An array of files objects that will be updated deliveryAt - Optional Parameter - Represents the new delivery dates for the files. Should be in the format YYYY-MM-DD comment - Optional Parameter - The update comment |
Set-CancelStatusToProjectFiles | [-authorizationToken] <String> [-project] <PSObject> [-files] <PSObject[]> |
Cancels the specified files Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object files - Mandatory Parameter - An array of files objects that will be canceled |
Get-AnalysisReports | [-authorizationToken] <String> [-project] <PSObject> [-outputFile] <String> [[-languageCode] <String>] |
Saves the Analysis reports to the given location as a json or xml file Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object outputFile - Mandatory Parameter - Represents the physical location where the file will be saved. The value should end with the .json or .xml extensionlanguageCode - Optional Parameter - Represents the target language code for generating the report. If this parameter is not provided, this function will create the report for all the languages. |
Get-PtaReport | [-authorizationToken] <String> [-project] <PSObject> [-languageCode] <String> [-outputLocation] <String> |
Saves the post translation report as a csv file to the specified location Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object languageCode - Mandatory Parameter - Represents the target language code for the Post Translation Report outputLocation - Mandatory Parameter - Represents the physical location where the file will be saved. This value should end with the .csv extension |
Get-AuditTrails | [-authorizationToken] <String> [-project] <PSObject> [-outputLocation] <String> |
Saves the adit trail report as a csv file to the specified location authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object languageCode - Mandatory Parameter - Represents the target language code for the Post Translation Report outputLocation - Mandatory Parameter - Represents the physical location where the file will be saved. This value should end with the .csv extension |
Export-TemplateUsedForProjectCreation | [-authorizationToken] <String> [-project] <PSObject> [-outputPath] <String> |
Exports the Project template used for creating the specified project and saves it to the specified location Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object outputPath - Mandatory Parameter - Represents the physcal location where the project template will be saved. This value should end with .sdltpl extension |
Import-Package | [-authorizationToken] [-project] [-packagePath] | Imports the package from the specified location to the specified project Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object packagePath - Mandatory Parameter - Represents the physical location where the file is stored. The specified file should be a valid .sdlrpx file |
Export-Package | [-authorizationToken] [-project] [-packageDestinationPath] [[-files] <PSObject[]>] | Export the project package for all the files or for the specified files to the given location. Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object packageDestinationPath - Mandatory Parameter - Represents the physical location where the export will be saved. The value should end with .sdlppx extensionfiles - Optional Parameter - An Array of file objects. If this parameter is provided, the export will target only these files |
Add-FilesToProject | [-authorizationToken] <String> [-project] <PSObject> [-filesPath] <String> [[-isReference] <Boolean>] |
Adds translatable or reference files to the specified project Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object filesPath - Mandatory Parameter - Represents the physical location of the file or folder isReference - Optional Parameter - Boolean Value indicating whether the files will be added as reference or translatable files. By default this value is false |
Update-ProjectFiles | [-authorizationToken] <String> [-project] <PSObject> [-filesPath] <String> [[-isReference] <Boolean>] |
Synchornise the files located at the specified path with the existing files from the given project Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object filesPath - Mandatory Parameter - Represents the physical location of the file or folder isReference - Optional Parameter - Boolean Value indicating whether the files that will be updated are reference or translatable files. By default this value is false |
Save-AllProjectsFile | [-authorizationToken] <String> [-project] <PSObject> [-outputLocation] <String> [[-projectfiles] <PSObject[]>] [[-type] <String>] [[-includeTMs] <Boolean>] |
Saves all the files or the specified files or the native target as a zip file to the given location Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object outputLocation - Mandatory Parameter - Represents the location where the files will be saved. The value should end with .zip extension.projectfiles - Optional Parameter - An array of file objects type - Optional Parameter - Specifies whether to download the latest versions of the files or the target version of the files. The value can be all or targetnativefiles includeTMs - Optional Parameter - Boolean Value indicating whether the Translation Memories should be included or not. If this parameter is true, the type parameter must be set to targetnativefiles |
New-PostTranslationReport | [-authorizationToken] <String> [-project] <PSObject> [[-files] <PSObject[]>] |
Schedule the creation for a new post translation report for all the files or for the specified ones Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object files - Optional Parameter - An array of file objects |
Get-ProjectFilesInfo | [-authorizationToken] <String> [-project] <PSObject> |
Returns all of the files from the list view from the specified project authorizationToken - Mandatory Parameter - Required for accessing sensitive resources project - Mandatory Parameter - The project object |
Function Name | Syntax | Description |
---|---|---|
Get-AllTMs | [-authorizationToken] <String> |
Returns all the Translation Memories form the server Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources |
Get-TMsByContainer | [-authorizationToken] <string> [-container] <psobject> |
Returns all the Translation Memories that exists within the given container Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources container - Mandatory Parameter - A container object representing an existing container |
Get-TM | [-authorizationToken] <String> [[-tmName] <String>] [[-tmId] <String>] |
Returns the translation memory that matches the provided parameters Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources tmName - Optional Parameter tmId - Optional Parameter If both tmName and tmId are provided, this function will search for the translation memory that matches the provided translation memory id. If it not found, an error message will be displayed on the console. Afte that, the function will search for the translation memory with the provided name |
New-TM | [-authorizationToken] <String> [-tmName] <String> [-container] <PSObject> [-organization] <PSObject> [-languageDirections] <PSObject[]> [[-fieldTemplate] <PSObject>] [[-description] <String>] [[-copyright] <String>] [[-recognizers] <String>] [[-fuzzyIndexes] <String>] |
Creates a new translation memory with the specified arguments Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources tmName - Mandatory Parameter - Represents the name of the Translation Memory container -Mandatory Parameter - A container object organization - Mandatory Parameter - An organization object languageDirections - Mandatory Parameter - A languageDirection object, representing one or more pairs consiting in one target language and multiple source languages fieldTemplate - Optional Parameter - A fieldTemplate object description - Optional Parameter copyright - Optional Parameter recognizers - Optional Parameters - Recognize settings for the translation memory The value should be a string consisting in comma separated words and one or many of the following values should be provided: RecognizeNone RecognizeDates RecognizeTimes RecognizeNumbers RecognizeAcronyms RecognizeVariables RecognizeMeasurements RecognizeAlphaNumeric RecognizeAll The default value is RecognizeAll fuzzyIndexes - Optional Parameters - Additionally, multiple fuzzy indexes can be provided The value should be a string consisting in comma separated words and one or many of the following values should be provided: SourceWordBased SourceCharacterBased TargetCharacterBased TargetWordBased The default value is SourceWordBased,TargetWordBased |
Remove-TM | [-authorizationToken] <String> [-tm] <PSObject> |
Removes the specified Translation Memory Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources tm - Mandatory Parameter - A translationMemory object, representing an existing Translation Memory |
Update-TM | [-authorizationToken] <String> [-tm] <PSObject> [[-languageDirections] <PSObject[]>] [[-fieldTemplate] <PSObject>] [[-tmName] <String>] [[-copyright] <String>] [[-description] <String>] |
Updates an existing Translation Memory with the specified arguments Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources tm - Mandatory Parameter - A translationMemory object representing an existing Translation Memory languageDirections - Optional Parameter - A languageDirection object, representing one or more pairs consiting in one target language and multiple source languages fieldTemplate - Optional Parameter - A fieldTemplate object copyright - Optional Parameter description - Optional Parameter |
Get-AllProjectTemplates | [-authorizationToken] <String> |
Returns all the existing project templates Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources |
Get-ProjectTemplate | [-authorizationToken] <String> [[-templateName] <String>] [[-templateId] <String>] |
Returns the project template that matches the specified arguments Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources templateName - Optional Parameter templateId - OptionalParameter |
New-ProjectTemplate | [-authorizationToken] <String> [-templateName] <String> [-organization] <PSObject> [-sourceLanguageCode] <String> [-targetLanguageCodes] <String[]> [-translationMemories] <PSObject[]> [[-segmentLockingSetting] <PSObject[]>] [[-termbases] <PSObject[]>] [[-description] <String>] [[-projectTemplatePath] <String>] |
Creates a new project template with basic or advanced settings Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources templateName - Mandatory Parameter - Represents the name of the template organization - Mandatory Parameter - An organization object sourceLanguageCode - Mandatory Parameter - Represents the source language of the project template targetLanguageCodes - Mandatory Parameter - An array of language codes, representing the target languages translationMemories - Mandatory Parameter - An array of translationMemory objects, representing the translation memories that will be applied for all the target languages segmentLockingSetting - Optional Parameter - An array of segmentLockingSetting objects representing advanced settings for the project template. When this parameter is provided, the first element from the array should be the setting for all language pairs termbases - Optional Parameter - An array of termbase objects description - Optional Parameter projectTemplatePath - Optional Parameter - Additionally, an existing project template can be provided for creating this project template. The value should be an existing path to an actual sdltpl file |
Update-ProjectTemplate | [-authorizationToken] <string> [-projectTemplate] <psobject> [[-name] <string>] [[-description] <string>] [[-organization] <psobject>] [[-sourceLanguageCode] <string>] [[-targetLanguageCodes] <string[]>] [[-tms] <psobject[]>] [[-segmentLockingSetting] <psobject[]>] [[-termbases] <psobject[]>] |
Updates an exsting project template Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources projectTemplate - Mandatory Parameter - A projectTemplate object, representing an existing project template name - Optional Parameter description - Optional Parameter organization - Optional Parameter - An organization object sourceLanguageCode - Optional Parameter - Represents the source language of the project template targetLanguageCodes - Optional Parameter - An array of language codes, representing the target languages tms - Optional Parameter - An array of translationMemory objects, representing the translation memories that will be applied for all the target languages segmentLockingSetting - Optional Parameter - An array of segmentLockingSetting objects representing advanced settings for the project template. When this parameter is provided, the first element from the array should be the setting for all language pairs termbases - Optional Parameter - An array of termbase objects |
Remove-ProjectTemplate | [-authorizationToken] <String> [-template] <PSObject> |
Removes an existing project template Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources template - Mandatory Parameter - A projectTemplate object, representing an existing project template. |
Export-ProjectTemplate | [-authorizationToken] <String> [-projectTemplates] <PSObject[]> [-outputFilesPath] <String> |
Exports the project template to the specified location Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources projectTemplates - Mandatory Parameter - An array of [projectTemplate] objects, representing the project template used for export outputFilesPath - Mandatory Parameter - Represents the location where the file will be saved. If the projectTemplates parameter has only one template object, this value should end with .sdltpl extension, otherwise it should end with .zip |
Get-AllTermbases | [-authorizationToken] <String> |
Gets all the termbases from the server Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources |
Get-Termbase | [-authorizationToken] <String> [-termbaseName] <String> |
Return the termbase with the specified name Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources termbaseName - Mandatory Parameter |
Import-TMX | [-authorizationToken] <String> [-tm] <PSObject> [-sourceLanguageCode] <String> [-targetLanguageCode] <String> [-tmxPath] <String> |
Imports the TMX from the given location to the specified Translation Memory with the default settings Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources tm - Mandatory Parameter - A translationMemory object, representing an existing translation memory sourceLanguageCode - Mandatory Parameter - Represents the source language for the scope of the import targetLanguageCode - Mandatory Parameter - Represents the target language for the scope of the import tmxPath - Mandatory Parameter - Represents the physcal location of the file that will be used for import. Must be a valid tmx file |
Export-TMX | [-authorizationToken] <String> [-tm] <PSObject> [-sourceLanguageCode] <String> [-targetLanguageCode] <String> [-outputFilePath] <String> |
Exports the tmx from an existing Translation Memory to the given location for the specified target and source language Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resource tm - Mandatory Parameter - A translationMemory object, representing an existing translation memory sourceLanguageCode - Mandatory Parameter - Represents the source language for the scope of the export targetLanguageCode - Mandatory Parameter - Represents the target language for the scope of the export tmxPath - Mandatory Parameter - Represents the physcal location where the export will be saved The value should end with .tmx.gz extension |
Get-AllFieldTemplates | [-authorizationToken] <String> |
Gets all the field templates from the server Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources |
Get-FieldTemplate | [-authorizationToken] <String> [[-fieldTemplateName] <String>] [[-fieldTemplateId] <String>] |
Get the field template that matches the specified arbuments Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources fieldTemplateName - Optional Parameter fieldTemplateId - Optional Parameter If both fieldTemplateName and fieldTemplateId are provided, this function will search for the template that matches the specified id. If it is not found, an error message will be displayed on the console. After that, the function will search for the field template with the given name |
New-FieldTemplate | [-authorizationToken] <String> [-name] <String> [-organization] <PSObject> [-fields] <PSObject[]> [[-description] <String>] |
Creates a new field template Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources name - Mandatory Parameter organization - Mandatory Parameter - An organization object fields - Mandatory Parameters - An array of fieldDefinition objects description - Optional Parameter |
Remove-FieldTemplate | [-authorizationToken] <String> [-fieldTemplate] <PSObject> |
Removes an existing field template Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources fieldTemplate - Mandatory Parameter - A fieldTemplate object representing an existing field template |
Update-FieldTemplate | [-authorizationToken] <String> [-fieldTemplate] <PSObject> [[-name] <String>] [[-fields] <PSObject[]>] [[-description] <String>] [[-organization] <PSObject>] |
Updates an existing field template Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources fieldTemplate - Mandatory Parameter - A fieldTemplate object representing an existing field template name - Optional Parameter fields - Optional Parameter - An array of fieldDefinition objects description - Optional Parameter organization - Optional Parameter - An organization object. |
Get-LanguageDirections | [[-source] <String>] [[-target] <String[]>] |
Helper function that organize on target language to many source languages and returns it as an object for creating/updating translation memories Parameters source - Mandatory Parameter - Represents the source language code target - Mandatory Parameter - An array of language codes representing the target languages |
Get-FieldDefinition | [-name] <String> [-type] <String> [[-values] <String[]>] |
Helper function to create a field definition that can be used for creating/updating field templates Parameters name - Mandatory Parameter - Name of the field definition type - Mandatory Parameter - Type of the field definition Should be one of the following values: SingleString MultipleString Integer DateTime SinglePicklist MultiplePicklist values - Optional Parameter - Optionally, values can be provided for the fields only when the type parameter is SinglePicklist or MultiplePicklist |
Get-DefaultSegmentLockingSettings | Helper function that creates the default segment locking settings for project templates | |
Get-SegmentLockingSettings | [-targetLanguageCode] <String> [-anyTranslationStatuses] <Boolean> [-translationStatuses] <String[]> [-translationOrigins] <String[]> [[-mtqe] <Enumerable[]>] [[-score] <Nullable>] |
Helper function to create custom segment locking settings for project templates Parameters targetLanguageCode - Mandatory Parameter - The target language code If the setting is for all language pairs, the value of this parameter should be an empty string anyTranslationStatuses - Mandatory Parameter - Boolean value indicating whether this settings will be: ANY of the specified translation statuses OR origins when true BOTH the specified translation statuses AND origins when false translationStatuses - Mandatory Parameter - An array of string representing the translation statuses Should be one or more of the following values: SignedOff TranslationApproved Translated TranslationRejected Draft SignOffRejected translationOrigins - Mandatory Parmaeter - An array of string representing the translation origins Should be one or more of the following values: TranslationMemory NeuralMachineTranslation Interactive PerfectMatch AutoPropagated CopyFromSource AutomatedAlignment ReverseAlignment MachineTranslation AdaptiveMachineTranslation mtqe - Optional Parameter - An array of string representing the mtqe This parameter should be provided only when the targetLanguageCode is not an empty string and should be one of the following values Expected values Good Adequate Poor score - Optional Parameter - The score as an integer Should be a positive integer and not exceed 100 |
Function Name | Syntax | Description |
---|---|---|
Get-Licensing | [-authorizationToken] <String> |
Gets the GroupShare licensing information Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources |
Get-AllDbServers | [-authorizationToken] <String> |
Gets all the databases from the server Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources |
Get-DBServer | [-authorizationToken] <String> [[-serverName] <String>] [[-serverId] <String>] |
Gets the database server with the specified arguments Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources serverName - Optional Parameter serverId - Optional Parameter If both serverName and serverId are provided, the function will search for the server that matches the server id. If it is not found, an error message will be displayed on the console. After that, the function will search for the server that matches the provided name |
New-DbServer | [-authorizationToken] <String> [-name] <String> [-serverName] <String> [-authentication] <String> [-ownerOrganization] <PSObject> [[-description] <String>] [[-userName] <String>] [[-password] <String>] |
Creates a new database server Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources serverName - Mandatory Parameter authentication - Represents the authentication method on the server. This parameter can be Windows or Database . If this parameter value is Database the userName and password parameter must be provided ownerOrganization - Mandatory Parameter - An organization object, representing the owner of this server description - Optional Parameter description - Optional Parameter userName and password - Optional Parameters - Represents the credentials for accessing this database. If the authentication parameter is Database these two parameters must be provided |
Remove-DbServer | [-authorizationToken] <String> [-dbServer] <PSObject> |
Removes an existing database server Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources dbServer - Mandatory Parameter - A dbServer object, representing an existing database server |
Update-DbServer | [-authorizationToken] <String> [-dbServer] <PSObject> [[-newServerName] <String>] [[-description] <String>] [[-authentication] <String>] [[-userName] <String>] [[-password] <String>] |
Updates an existing database server Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources dbServer - Mandatory Parameter - A dbServer object, representing an existing database server newServerName - Optional Parameter description - Optional Parameter authentication - Optional Parameter - Represents the updated authentication method on the server. This parameter can be Windows or Database . If this parameter value is Database the userName and password parameter must be provided userName and password - Optional Parameters - Represents the credentials for accessing this database. If the authentication parameter is Database these two parameters must be provided |
Get-AllContainers | [[-authorizationToken] <String>] |
Returns all the containers from the server Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources |
Get-ContainersByOrganization | [-authorizationToken] <string> [-organization] <psobject> |
Returns all the containers that exists within the given organization Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources organization - Mandatory Parameter - An organization object representing an existing organization |
Get-Container | [-authorizationToken] <String> [[-containerName] <String>] [[-containerId] <String>] |
Returns the container with the specified arguments Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources containerName - Optional Parameter containerId - Optional Parameter If both containerName and containerId are provided, this function will search for the container that matches the specified id. If the container is not found, an error message will be displayed on the console. After that the function will search for the container with the provided name |
New-Container | [-authorizationToken] <String> [-containerName] <String> [-organization] <PSObject> [-DbServer] <PSObject> [[-containerDbName] <String>] |
Creates a new container Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources containerName - Mandatory Parameter organization - Mandatory Parameter - An organization object representing the owner organization of the container dbServer - Mandatory Parameter - A dbServer object containerDbName - Optional Parameter - When provided, this parameter should not container whitespaces and should not start with a number |
Remove-Container | [-authorizationToken] <String> [-container] <PSObject> |
Removes an existing container Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources container - Mandatory Parameter - A container object |
Update-Container | [-authorizationToken] <String> [-container] <PSObject> [[-containerName] <String>] |
Updates an existing container Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources container - Mandatory Parameter - A container object containerName - Optional Parameter |
Function Name | Syntax | Description |
---|---|---|
Get-AllUsers | [-authorizationToken] <String> [[-organization] <PSObject>] [[-sortProperty] <String>] [[-sortDirection] <String>] [[-maxLimit] <Int32>] |
Returns all the users from the server or the users within the specified filter Parameters See organization object structure authorizationToken - Mandatory Parameter - Required for accessing sensitive resources organization - Optional Parameter - An organization object. When this parameter is provided, only the users within this organization will be displayed sortProperty and sortDirection - Optional Parameters - The sort method and property When sorting is necesarry both parameters should be provided sortProperty should be one of the following values: DisplayName Name UserType EmailAddress sortDirection should be one of the following values: ASC DESC maxLimit - OptionalParameter - Represents the maximum number of users to be returned Default is 100 |
Get-AllUsersFromRole | [-authorizationToken] <String> [-role] <PSObject> |
Gets all the user within the specified role Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources role - Mandatory Parameter - A role object |
Get-User | [-authorizationToken] <String> [[-userName] <String>] [[-userId] <String>] |
Returns the user that matches the specified arguments Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources userName - Optional Parameter - Represents the username user for logging on the server userId - Optional Parameter - Represents the unique id of the user If both userName and userId parameters are provided the function will search for the user that matches the user Id, ignoring the userName |
New-User | [-authorizationToken] <String> [-userName] <String> [-password] <String> [-organization] <PSObject> [-userType] <String> [-displayName] <String> [-role] <PSObject> [[-emailAddress] <String>] [[-phoneNumber] <String>] [[-description] <String>] |
Creates a new user Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources userName - Mandatory Parameter password - Mandatory Parameter - Should match the password complexity rules organization - Mandatory Parameter - An organization object userType - Mandatory Parameter - This parameter should be one of the following values: SDLUser WindowsUser CustomUser IdpUser displayName - Mandatory Parameter role - Mandatory Parameter - A role object. Represents the role that this user will have in this organization. emailAddress - Optional Parameter phoneNumber - Optional Parameter description - Optional Parameter |
Remove-User | [-authorizationToken] <String> [-user] <PSObject> |
Removes the specified user Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources user - Mandatory Parameter - A user object |
Update-User | [-authorizationToken] <string> [-user] <psobject> [[-password] <string>] [[-organization] <psobject>] [[-userType] <string>] [[-displayName] <string>] [[-emailAddress] <string>] [[-phoneNumber] <string>] [[-description] <string>] |
Updates an existing user Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources user - Mandatory Parameter - A user object password - Optional Parameter - Should match the password complexity rules organization - A organization object, representing the new user's organization userType - Optional Parameter - This parameter should be one of the following values: SDLUser WindowsUser CustomUser IdpUser displayName - Optional Parameter emailAddress - Optional Parameter phoneNumber - Optional Parameter description - Optional Parameter |
Update-RoleToUser | [-authorizationToken] <String> [-organization] <PSObject> [-role] <PSObject> [-user] <PSObject> [-updateMode] <String> |
Adds or removes a role to an existing user for the given organization Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources organization - Mandatory Parameter - An organization role - Mandatory Parameter - A role object user - Mandatory Parameter - A user object updateMode - Mandatory Parameter - This parameter should be either Add or Remove |
Get-AllOrganizations | [-authorizationToken] <String> |
Returns all the organizations from the server Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources |
Get-Organization | [-authorizationToken] <String> [[-organizationName] <String>] [[-organizationId] <String>] |
Returns the specified organization Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources organizationName - Optional Parameter organizationId - Optional Parameter When both organizationName and organizationId are provided, this function will search for the organization with the specified organization Id. If it is not foud, an error message will be displayed on the console. After that, the function will search for the organization with the specified name |
New-Organization | [-authorizationToken] <String> [-parentOrganization] <PSObject> [-organizationName] <String> [[-organizationDescription] <String>] [[-isLibrary] <Boolean>] |
Creates a new organization within the provided Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources parentOrganization - Mandatory Parameter - An organization object will be the parent of this new organization organizationName - Mandatory Parameter organizationDescription - Optional Parameter isLibrary - Optional Parameter - Boolean Value indicating whether the new organization will be a library or not |
Remove-Organization | [-authorizationToken] <String> [-organization] <PSObject> |
Removes the provided organization Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources organization - Mandatory Parameter - An organization object. |
Update-Organization | [-authorizationToken] <String> [-organization] <PSObject> [[-organizationName] <String>] [[-organizationDescription] <String>] |
Updates an existing organization Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources organization - Mandatory Parameter - An organization object organizationName - Optional Parameter - The new organization name organizationDescription - Optional Parameter - the new organization description |
Get-AllRoles | [-authorizationToken] <String> |
Returns all the roles from the server Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources |
Get-Role | [-authorizationToken] <String> [[-roleName] <String>] [[-roleId] <String>] |
Returns the role that matches the provided arguments Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources roleName - Optional Parameter roleId - Optional Parameter If both roleName and roleId are provided, this function will search for the role with the specified id. If the role is not found, an error message will be displayed on the console. After this, the function will search for the role with the provided name |
New-Role | [-authorizationToken] <String> [-roleName] <String> [-permissions] <PSObject[]> |
Creates a new role with the specified permissions Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources roleName - Mandatory Parameter - The display name of the role permissions - An array of permission objects |
Remove-Role | [-authorizationToken] <String> [-role] <PSObject> |
Removes an existing role Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources role - Mandatory Parameter - A role object |
Update-Role | [-authorizationToken] <String> [-role] <PSObject> [[-newRoleName] <String>] [[-permissions] <PSObject[]>] |
Updates an existing role Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources role - A role object newRoleName - Optional Parameter - The New Display Name for the specified role permissions - Optional Parameters - An array of permission object. Represents the new set of permissions. |
Get-Permissions | [-authorizationToken] <String> [[-permissionNames] <String[]>] |
Returns all the existing permission on the server or only the ones from with the specified names Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources permissionNames - Optional Parameters - When the names of the permissions are provided, only the permissinos with the given names will be returned. |
Get-AllOrganizationResources | [-authorizationToken] <String> [-organization] <PSObject> |
Returns all the resources within the specified organization Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources organization - Mandatory Parameter - An organization object |
Move-OrganizationResources | [-authorizationToken] <String> [-resources] <PSObject[]> [-newOrganization] <PSObject> |
Moves content resources from one organization to another Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources resources - Mandatory Parameter - An array of resource objects, representing the resources that will be moved newOrganization - Mandatory Parameter - An organization representing the new organization that will contain the resources |
Join-ResourcesToOrganization | [-authorizationToken] <String> [-resources] <PSObject[]> [-organization] <PSObject> |
Link the specified resources with the provided organization Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources resources - Mandatory Parameter - An array of resource objects, representing the resources that will be updated organization - Mandatory Parameter - An organization representing the organization that will contain the resources |
Split-ResourcesFromOrganization | [-authorizationToken] <String[]> [-resources] <PSObject[]> [-organization] <PSObject> |
Unlink the specified resources with the provided organization Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources resources - Mandatory Parameter - An array of resource objects, representing the resources that will be updated organization - Mandatory Parameter - An organization representing the organization that will not contain the specified resources anymore |
Get-UserTranslationProvider | [-authorizationToken] <String> [-user] <PSObject> |
Return the tranlsation provider from the given user Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources user - Mandatory Parameter - A user object |
Add-TranslationProviderToUser | [-authorizationToken] <String> [-user] <PSObject> [-clientId] <String> [-clientSecret] |
Adds a translation provider to the given user Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources user - Mandatory Parameter - A user object clientId - Mandatory Parameter clientSecret -Mandatory Parameter |
Remove-TranslationProviderFromUser | [-authorizationToken] <string> [-user] <psobject> [-translationProvider] <psobject> |
Removes the specified translation provider form the specified user Parameters authorizationToken - Mandatory Parameter - Required for accessing sensitive resources user - Mandatory Parameter - A user object translationProvider - Mandatory Parameter - A translationProvider object |
Windows may block files downloaded from the internet for security reasons. To ensure the toolkit functions properly, unblock the downloaded zip file.
- Open File Explorer and navigate to the folder containing the downloaded file.
- Right-click on the file to open the context menu.
- Select "Properties" from the context menu.
- In the Properties dialog, go to the "General" tab.
- Look for the message: "This file came from another computer and might be blocked to help protect this computer."
- If this message is present, check the box next to "Unblock."
- Click "Apply" to save the changes.
- Click "OK" to close the Properties dialog.
If you want to add a new functionality or you spot a bug please fill free to create a pull request with your changes.
If you find an issue you report it here.
- MSI Installer: Introduced a WIX-based MSI installer for streamlined toolkit deployment.
Initial Release of the GroupShare PowerShell Toolkit: This version introduces a suite of PowerShell scripts designed to enhance interaction with GroupShare, enabling efficient project, resource, and system management.
-
Key Features:
-
Project Management: Create, update, and manage projects seamlessly.
-
Resource Management: Handle translation memories, project templates and field templates.
-
System Configuration Management: Access and modify containers and dbservers.
-
User Management: Manage user accounts and permissions.
-
Additional Features:
- Comprehensive help support for users.
- Sample scripts included for common tasks.
- A detailed README.md file to guide installation and usage.