Found that you can create an ArcGIS Online user via the following endpoint:
http://<yourcompany>.maps.arcgis.com/sharing/rest/portals/self/invite
You can call this after you have obtained a token from:
You can do this with your own portal, but I am not sure the endpoint is open for ArcGIS Online.
Thanks for the response. Unfortunately I think you are right.
Found that you can create an ArcGIS Online user via the following endpoint:
http://<yourcompany>.maps.arcgis.com/sharing/rest/portals/self/invite
You can call this after you have obtained a token from: