- About JET
- Administration
- Creating an App
- Basic Functions
- Advanced Functions
- Automation Parameters
- Field Value Selection
- Field Value Formatting
- Field Value Manipulation
- Total Count of a Form
- Total Sum of Field
- Minimum Value of Field
- Maximum Value of Field
- Average Value of Field
- Site Level Parameters - Site Name
- Site Level Parameters - Login User
- Site Level Parameters - Login User Email
- Owner Email
- Check Permission Group
- Date Time Addition
- Email Image
- CheckBox Condition
- Usage of Time Fields
- Parent Form Updates
- 3rd Party API
- Other Features
- Known Issues & Solutions
- Linux
- Windows
- FAQ (JET)
5.7.User Details Export
User Details Export
When 3rd party applications are being used, there will be times when JET user account details is required.
APIs deal with the record level data but not user account.
A simple call to the function below would be able to retrieve the details required.
Getting username
https://demo.jetworkflow.com/ims/jetapi.php?method=getUserDetails&project=testsite&skey=123456789
- project — this indicates which site.
- skey — session key generated from an existing login.
In this example, what we need is the site ID and also the session key.
Getting skey
Select URL Link while editing form settings.
Make sure to tick “Append JET skey and project on url”
In the Form Url field, enter the website url where you need to export the user details to.
In the example above, the url used is our own test url for this.
All you need to do is to go to your main forms page and click on the form created above.
https://demo.jetworkflow.com/ims/test.php?skey=123456789&project=testsite
This will result in a new tab being open with a similar url to the above.
';
?>
In the target url, it will need to call back with the method getUserDetails to get the information wanted.
You can replace https://demo.jetworkflow.com/ims/ with the url of where your JET Workflow is installed at.
{"status":"success","message":"success","username":"testuser","id_user":"1"}
You will get the above return message and you can now retrieve the username from here.
**Take note that you will need to use your own methods to capture the required data based on how your own website is created.
**The session key will only last 2 hours from the time of last generation.