pyaz/synapse/role/assignment/__init__.py
def create(role, workspace_name, assignee=None, assignee_object_id=None, assignee_principal_type=None, assignment_id=None, item=None, item_type=None, scope=None):
    '''
    Create a role assignment.

    Required Parameters:
    - role -- The role name/id that is assigned to the principal.
    - workspace_name -- The workspace name.

    Optional Parameters:
    - assignee -- Represent a user or service principal. Supported format: object id, user sign-in name, or service principal name.
    - assignee_object_id -- Use this parameter instead of '--assignee' to bypass Graph API invocation in case of insufficient privileges. This parameter only works with object ids for users, groups, service principals, and managed identities. For managed identities use the principal id. For service principals, use the object id and not the app id.
    - assignee_principal_type -- use with --assignee-object-id to avoid errors caused by propagation latency in AAD Graph
    - assignment_id -- Custom role assignment id in guid format, if not specified, assignment id will be randomly generated.
    - item -- Item granted access in the workspace. Using with --item-type to combine the scope of assignment
    - item_type -- Item type granted access in the workspace. Using with --item to combine the scope of assignment.
    - scope -- A scope defines the resources or artifacts that the access applies to. Synapse supports hierarchical scopes. Permissions granted at a higher-level scope are inherited by objects at a lower level. In Synapse RBAC, the top-level scope is a workspace. Assigning a role with workspace scope grants permissions to all applicable objects in the workspace.
    '''
    return _call_az("az synapse role assignment create", locals())

    Create a role assignment.

    Required Parameters:
    - role -- The role name/id that is assigned to the principal.
    - workspace_name -- The workspace name.

    Optional Parameters:
    - assignee -- Represent a user or service principal. Supported format: object id, user sign-in name, or service principal name.
    - assignee_object_id -- Use this parameter instead of '--assignee' to bypass Graph API invocation in case of insufficient privileges. This parameter only works with object ids for users, groups, service principals, and managed identities. For managed identities use the principal id. For service principals, use the object id and not the app id.
    - assignee_principal_type -- use with --assignee-object-id to avoid errors caused by propagation latency in AAD Graph
    - assignment_id -- Custom role assignment id in guid format, if not specified, assignment id will be randomly generated.
    - item -- Item granted access in the workspace. Using with --item-type to combine the scope of assignment
    - item_type -- Item type granted access in the workspace. Using with --item to combine the scope of assignment.
    - scope -- A scope defines the resources or artifacts that the access applies to. Synapse supports hierarchical scopes. Permissions granted at a higher-level scope are inherited by objects at a lower level. In Synapse RBAC, the top-level scope is a workspace. Assigning a role with workspace scope grants permissions to all applicable objects in the workspace.
    
Create a role assignment.
Required Parameters:
role -- The role name/id that is assigned to the principal.
workspace_name -- The workspace name.

Optional Parameters:
assignee -- Represent a user or service principal. Supported format: object id, user sign-in name, or service principal name.
assignee_object_id -- Use this parameter instead of '--assignee' to bypass Graph API invocation in case of insufficient privileges. This parameter only works with object ids for users, groups, service principals, and managed identities. For managed identities use the principal id. For service principals, use the object id and not the app id.
Create a role assignment . Required Parameters : role -- The role name / id that is assigned to the principal . workspace_name -- The workspace name . Optional Parameters : assignee -- Represent a user or service principal . Supported format : object id user sign - in name or service principal name . assignee_object_id -- Use this parameter instead of ' -- assignee ' to bypass Graph API invocation in case of insufficient privileges . This parameter only works with object ids for users groups service principals and managed identities . For managed identities use the principal id . For service principals use the object id and not the app id .
def create(role, workspace_name, assignee=None, assignee_object_id=None, assignee_principal_type=None, assignment_id=None, item=None, item_type=None, scope=None):
    return _call_az("az synapse role assignment create", locals())
def create ( role , workspace_name , assignee = None , assignee_object_id = None , assignee_principal_type = None , assignment_id = None , item = None , item_type = None , scope = None ) : return _call_az ( "az synapse role assignment create" , locals ( ) )
Create a role assignment.
Create a role assignment .
'''
    Create a role assignment.

    Required Parameters:
    - role -- The role name/id that is assigned to the principal.
    - workspace_name -- The workspace name.

    Optional Parameters:
    - assignee -- Represent a user or service principal. Supported format: object id, user sign-in name, or service principal name.
    - assignee_object_id -- Use this parameter instead of '--assignee' to bypass Graph API invocation in case of insufficient privileges. This parameter only works with object ids for users, groups, service principals, and managed identities. For managed identities use the principal id. For service principals, use the object id and not the app id.
    - assignee_principal_type -- use with --assignee-object-id to avoid errors caused by propagation latency in AAD Graph
    - assignment_id -- Custom role assignment id in guid format, if not specified, assignment id will be randomly generated.
    - item -- Item granted access in the workspace. Using with --item-type to combine the scope of assignment
    - item_type -- Item type granted access in the workspace. Using with --item to combine the scope of assignment.
    - scope -- A scope defines the resources or artifacts that the access applies to. Synapse supports hierarchical scopes. Permissions granted at a higher-level scope are inherited by objects at a lower level. In Synapse RBAC, the top-level scope is a workspace. Assigning a role with workspace scope grants permissions to all applicable objects in the workspace.
    '''
role
workspace_name
assignee
assignee_object_id
assignee_principal_type
assignment_id
item
item_type
scope