Updating a role

Updating an existing role is very similar. The update_role() function call accepts the role ID and the role parameters, which are used to update the existing role represented by the role ID:

def update_role(conn):
role_id = "ce5156690f4c48bda5b5b9041325e493"
role_desc = {
"description":"This is a test role",
"isenabled" : False,
"name":"packtpub"
}
conn.identity.update_role(role_id, **role_desc)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.13.76