Geo Community,
I cannot find any examples to create an enterprise user using ArcGIS REST API. While my focus was to use ArcGIS API for Python to do so, I was told by Esri Level 1 CSA that It is not possible to create enterprise users ( We have ADFS as SAML Identity Provider and integrated with AGOL).
I can't find any REST API examples in python for reference. I can generate a token successfully with this code.
def genTokenInAGOL():
payload = "client_id=" + clientID + "&client_secret=" + clientSecret + "&grant_type=client_credentials"
headers = {
'content-type': "application/x-www-form-urlencoded",
'accept': "application/json",
'cache-control': "no-cache"
}
response = requests.request("POST", agolUrl, data=payload, headers=headers)
responseInJson = response.json()
return responseInJson['access_token']
Just wanted to Create a new enterprise user account. Also, I do get confused with Idp_Username and Username in Create object. For provider=enterprise, do both have to be there?
Thanks.