Skip to content

Code': 400, 'message': 'No role ids sent #199

Answered by jshcodes
Tom-stack-crypto asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Tom-stack-crypto!

There are are two payload elements we need to pass here.

  • The first will be our user_uuid, which will be passed as a query parameter.
  • The second will be the roleId, which we pass as a body parameter.
    • Multiple role IDs can be assigned at once, so the body payload parameter is passed as a list.
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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jshcodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
user management User Management issues and questions
2 participants