
MohammedZ.06209 (Customer) asked a question.
I have the below code but returns only 1st page users, i need to get all the users, please modify this code and help me:
function oktaapis() {
var API_URL = 'https://abdefg-hub.okta-emea.com//api/v1/users';
var authHeader = "SSWS " + "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
var options = {method: 'GET',contentType: 'application/json',headers: {Authorization: authHeader}}
var response = UrlFetchApp.fetch(API_URL, options)
var data = response.getContentText();
Logger.log(data)
}

See this page on pagination with the APIs.
But it might be simpler to use the rockstar plugin.