New users defaulting as Author
When new users signup via Okta they Collibra is defaulting them as Authors. This is causing us to run out of licenses and I have to go in and change user to Consumers.
Is there a way to change this?
kimschnack
Posted 4 years ago · Edited 1 year ago·Last reply 4 years ago
1 comment
arthurburkhardt
·4 years ago · EditedAh! I’m happy you’re raising this issue. I had the exact same thing happening to me!
I don’t think it does that anymore, it was probably a very temporary bug in the platform.
During that time, I have developed a routine to restore the “Consumer” license for all authors that only have a “required license = Consumer”.
It can be done through the REST or JAVA API.
query = { "ViewConfig":{ "Resources":{ "User":{ "id": {"name": "id"}, "userName": {"name": "userName"}, "licenseType": {"name": "licenseType"}, "requiredLicenseType": {"name": "requiredLicenseType"}, } } } } r = c.post('outputModule/export/json', json=query) df = pd.json_normalize(r.json()['view']['User0']) for row in df[(df.licenseType == 'AUTHOR') & (df.requiredLicenseType == 'CONSUMER')].itertuples(): r = c.patch(f"users/{row.id}", json={"licenseType": "CONSUMER"})