Discover how a bimodal integration strategy can address the major data management challenges facing your organization today.
Get the Report →Import Okta Data into FileMaker Pro
Create reports that integrate Okta data in Filemaker Pro.
One of the strengths of the CData ODBC driver is its ubiquitous support across many applications and platforms. In this article, you will configure the ODBC driver in FileMaker Pro and create data visualizations with Okta data.
Query Okta Data in FileMaker Pro
If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. See the "Getting Started" chapter of the help documentation for a guide to creating a DSN on Windows or Unix-based systems like Mac OS X and Linux.
To connect to Okta, set the Domain connection string property to your Okta domain.
You will use OAuth to authenticate with Okta, so you need to create a custom OAuth application.
Creating a Custom OAuth Application
From your Okta account:
- Sign in to your Okta developer edition organization with your administrator account.
- In the Admin Console, go to Applications > Applications.
- Click Create App Integration.
- For the Sign-in method, select OIDC - OpenID Connect.
- For Application type, choose Web Application.
- Enter a name for your custom application.
- Set the Grant Type to Authorization Code. If you want the token to be automatically refreshed, also check Refresh Token.
- Set the callback URL:
- For desktop applications and headless machines, use http://localhost:33333 or another port number of your choice. The URI you set here becomes the CallbackURL property.
- For web applications, set the callback URL to a trusted redirect URL. This URL is the web location the user returns to with the token that verifies that your application has been granted access.
- In the Assignments section, either select Limit access to selected groups and add a group, or skip group assignment for now.
- Save the OAuth application.
- The application's Client Id and Client Secret are displayed on the application's General tab. Record these for future use. You will use the Client Id to set the OAuthClientId and the Client Secret to set the OAuthClientSecret.
- Check the Assignments tab to confirm that all users who must access the application are assigned to the application.
- On the Okta API Scopes tab, select the scopes you wish to grant to the OAuth application. These scopes determine the data that the app has permission to read, so a scope for a particular view must be granted for the driver to have permission to query that view. To confirm the scopes required for each view, see the view-specific pages in Data Model < Views in the Help documentation.
When you configure the DSN, you may also want to set the Max Rows connection property. This will limit the number of rows returned, which is especially helpful for improving performance when designing reports and visualizations.
You can then load Okta data into tables in Filemaker Pro:
- In your solution, click File -> Import Records -> ODBC Data Source, and select the CData Okta DSN.
-
In the resulting SQL Query Builder wizard, select tables and columns and then click Insert into SQL Query. You can edit this query directly. For example:
SELECT Id, ProfileFirstName FROM Users WHERE Status = 'Active'
You can use the UI to build filters in the WHERE clause by clicking the WHERE tab.
- In the resulting Import Field Mapping wizard, you can define mappings from columns in the data source to the columns in a destination table. To create a new table for the query results, select New Table ("CData Okta Source") from the Target box, and click Import.
For more information on the SQL that the driver supports out of the box, see the help documentation.
Process Data at Design Time
You can sort and aggregate data, as well as calculate summary functions, while you browse tables. To manipulate the view of data at design time, first complete the two steps below:
- Switch to Browse mode: Click the Mode pop-up menu in the footer of the application.
- Switch to Table view: Click the table icon in the View As menu in the main toolbar of the application.
Aggregate and Summarize
Follow the procedure below to group column values and then display a summary, as shown in the screenshot below:
- Sort: Click the arrow in the Id column header and then click Sort Ascending in the resulting menu.
- Group: In the menu for the Id column click Add Trailing Group by Id to group the values and create a subsequent row where summary calculations can be inserted. Click Add Leading Group to introduce the group with a summary.
- Summarize: In the menu for a column that has been grouped, select a summary from the Trailing Subtotals menu.
the procedure below to create a simple bar chart that shows the total ProfileFirstName for each Id.
- Click the arrow in the ProfileFirstName column header and click "Chart by ProfileFirstName" in the menu. If you have already grouped on a column in the Table view, Id, for example, you can select the option to chart ProfileFirstName by Id.
- In the Chart Setup window, select columns to draw the chart: To add the column for the x-axis, click the button next to the Data box.
Selecting the x-axis and y-axis will draw the chart. You can also process data in the Chart Setup: Set the following options to create a basic chart.
- Click the button next to the Data box and select Specify Field Value. Select a column in the resulting dialog.
- Select a summary for the y-axis in the Summary menu.