Subscriptions/users/groups/roles Migration from Lower to Higher Environment?

Hi Team,

we are on OnPrem Instance and
Am able to Migrate looklml and lookml dashboards through git, and also dashboards and looks using gzr tool from my Dev to NonProd and Prod environments

is it possible to migrate dashboard subscriptions/users/groups/roles from Lower to Higher Environment?

If yes could you please guide me by providing some sample scripts.

Thanks,
Bhanu

0 2 305
2 REPLIES 2

You could do it via the API. As an example for users:

First call get all users: https://docs.looker.com/reference/api-and-integration/api-reference/v3.1/user#get_all_users

Then iterate through those results and call Create User: https://docs.looker.com/reference/api-and-integration/api-reference/v3.1/user#create_user

I would expect Subscription/groups and roles to work similarly.

You would have to loop through them logically/by user though because it’s unlikely the userids or ids for other categories (content ids for schedules) will match from instance to instance u less they have been kept in sync since inception.