PDP Util - How to reset instance and/or token
This article relates to the PDP Policy Autocreation java tool. See KB article: https://knowledge.domo.com/Connect/Personalized_Data_Permissions_(PDP)/PDP_Policy_Autocreation
There are multiple reasons why you may need to reset the configuration of the tool, including repointing to another instance or resetting the the token due to token expiry.
The steps to reset the tool's configuration are:
1. Delete the config\application.properties files that sits under the PDP Util's folder, in this example's case, the PDP Util's jar file is placed in Z:\PDP Util\. Make a backup of the file if needed, e.g. a rename to application.properties.backup is enough for the tool to not see it and for you to have a copy to revert to.
2. Start the PDP Util by running the following command from the directory where the jar is located. This will start the graphical user interface of the tool, where you will be prompted to enter the instance URL (needs to be the full instance-name.domo.com URL) and a token (the token you get from the Admin screen in your Domo instance):
PS Z:\PDP Util> java -jar '.\PDPUtil-2.28.jar'
3. After entering the Domo Domain and the Token, you should get a login success message, then prompted to enter the Datasource ID of the dataset containing the configuration of the PDP policies. For more information on what that config dataset should look like, take a look at the KB article, link provided earlier.
4. The PDP Util should find the dataset and give you a preview of the data in there. In this case there is only 1 row, which is shown in the preview:
5. Click on Execute, which will create the PDP rule on the target_ds dataset. The tool will display some useful info in the terminal where you ran the command. Look for the "PDP Policy Created" info message and that the error code is 0.
6. Check the newly created application.properties file in the config folder. It will contain the Domain and an encrypted string of the token provided in the earlier steps. Note that you cannot just paste the token that you get from Domo as that won't be encrypted, you will also get an "Invalid Header" error when you run the tool.
Other troubleshooting tips:
- If you are getting a Java Socket Exception error, check that your terminal (CMD/PowerShell,etc) is not restricted from reaching out to the internet. Try runining "ping google.com" to make sure that you have connectivity. If ping doesn't work, reach out to your network administrator as likely there are some restrictions.
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive