with Okta and Jira Data Center?
Fetches the information of a specific user from the Okta system. See the documentation
Updates the profile of a specific user in 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: {
jira_data_center: {
type: "app",
app: "jira_data_center",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.jira_data_center.$auth.api_url}/rest/auth/1/session`,
headers: {
Authorization: `Bearer ${this.jira_data_center.$auth.personal_access_token}`,
},
})
},
})