Code': 400, 'message': 'No role ids sent #199
Answered
by
jshcodes
Tom-stack-crypto
asked this question in
Q&A
-
Hello, i have just started working with the falconpy and am having a problem with with passing the role id with the GrantUserRoleIds. Getting the error as in the title.
|
Beta Was this translation helpful? Give feedback.
Answered by
jshcodes
Jul 23, 2021
Replies: 1 comment
-
There are are two payload elements we need to pass here.
from falconpy.user_management import User_Management
falcon = User_Management(creds={"client_id": "CLIENT_ID_HERE", "client_secret": "CLIENT_SECRET_HERE"})
PARAMS = {"user_uuid": "USER UUID STRING HERE (Check out RetrieveUserUUID)"}
BODY = {
"roleIds": [
"vulnerability_manager" # Or whatever role(s) you wish to assign
]
}
result = falcon.GrantUserRoleIds(parameters=PARAMS, body=BODY)
print(result) Give this a try, and let us know if there are any questions. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jshcodes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Tom-stack-crypto!
There are are two payload elements we need to pass here.