cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2150
Views
0
Helpful
2
Replies

VMANAGE (API) : PROBLEM to add USER GROUP

giviney
Level 1
Level 1

I have the next script (in python) and when i try to add USER GROUP with POST i can´t do that

 

def add_group():


print("\nSe cargara el grupo ctl-team....")

url_group = https://{{vmanage}}:{{port}}/dataservice/admin/usergroup


with open('grupo_list.json') as list:
      group=json.load(list)

 

response = requests.post(url=url_group, headers=header,verify=False,data=json.dumps(group))


if response.status_code == 200:
       print('Se cargo de forma correcta el grupo "list"')
else:
      print('Error al cargar el grupo "list"' + str(response.text))
      exit()

 

 

-i recieve the following message 

 

Error al cargar el grupo "list"{"error":{"message":"create user group request failed","details":"User group creation permission check failed.","code":"USERGR0003"}}

 

-I am using user with rol netadmin.

 

-When i used the same scritp to add USER GROUP in other VAMANGE , it worked ok , without problems.

 

Se cargo de forma correcta el grupo "list"'

 

-When i tried to do the same (add USER GROUP)  wtih POSTMANA , i received the same error message (attach screen)

 

Which could be the problem? any advice?

 

thanks you

Giancarlo Villarreal

1 Accepted Solution

Accepted Solutions

@giviney suggest asking this in this community for response https://community.cisco.com/t5/sd-wan-and-cloud-networking/bd-p/discussions-sd-wan

 

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

View solution in original post

2 Replies 2

@giviney suggest asking this in this community for response https://community.cisco.com/t5/sd-wan-and-cloud-networking/bd-p/discussions-sd-wan

 

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

thanks  for your recommendation @bigevilbeard , i am going to try luck in that community.