What is the Mandotory Payload to getregisteruser I am missing something passing only username but may be I am missing something
import sys, json
import requests
username = "domain\\serviceaccount"
password = "Pass@word1"
headers = {
"appID":"",
"locale":"en-US",
}
##
## check if entity exists
##
user="existeduser"
#print(user)
username_u="domain\\{}".format(user)
payload = {
"userName": username_u,
}
url = "http://domain-rest.nxone.com/AgilePointServer/Admin/GetRegisterUser"
r=requests.post(url, auth=(username,password),json=payload, headers=headers )
if r == 200:
print(r.content)
else:
print(" ******* We got error error \n\n\n\n")
print(r.content
-
Udaya,
I believe you have gone through the documentation https://documentation.agilepoint.com/11/developer/restmethodGetRegisterUser.html which has sample code and Request payload also.
Can you check for the error status code and error message returned by the API call? It would generally contain the actual error details.
Regards,
Harish
-
It is 405 but as per the documentation passing the userNmae which I need details
payload = {
"userName": domain\\testuser,
}With Post call looks it is not honoring for GetRegisterUser but we are getting the result for GetRegisterUsers
サインインしてコメントを残してください。

コメント
5件のコメント