cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
1730
Views
0
Helpful
2
Replies
giviney
Beginner

VMANAGE (API) : PROBLEM to add USER GROUP

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
bigevilbeard
Cisco Employee

2 REPLIES 2
bigevilbeard
Cisco Employee

@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.

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

Create
Recognize Your Peers
Content for Community-Ad