Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

User creation through scim api #12

@anogues

Description

@anogues

Hello

I forked your project and added the following to be able to create new users through the api.

https://docs.databricks.com/dev-tools/api/latest/scim/scim-users.html

def create_user(self, user_name=None, headers=None):
    _data = {}
    if user_name is not None:
        _data['schemas'] = ["urn:ietf:params:scim:schemas:core:2.0:User"]
        _data['userName'] = user_name
        _data['entitlements'] = [{'value': 'allow-cluster-create'}]		
    return self.client.perform_query('POST', '/preview/scim/v2/Users', data=_data, headers=headers)

Of course it can be improved to allow to pass groups and so on. Just in case you want it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions