with Okta and Workday?
Emit new event for each new worker created in Workday. See the documentation
Change the business title of a worker. See the documentation
Fetches the information of a specific user from the Okta system. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
okta: {
type: "app",
app: "okta",
}
},
async run({steps, $}) {
return await axios($, {
url: `{{custom_fields.url}}/api/v1/users`,
headers: {
"Authorization": `SSWS {{custom_fields.api_token}}`,
"Accept": `application/json; okta-version=1.0.0`,
},
params: {
Accept: ``,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
workday: {
type: "app",
app: "workday",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.workday.$auth.domain}/ccx/api/v1/${this.workday.$auth.tenant_id}/workers`,
headers: {
Authorization: `Bearer ${this.workday.$auth.oauth_access_token}`,
},
})
},
})