Resend Invitations to Inactive Users in Bulk
Steps: 1) Download Python and install it on your PC or the Sisense machine (make sure to add python to the PATH to easily initiate installation of directories). 2) Run CMD and type the following commands to add libraries used as part of our solution: - pip install requests - pip install json 3) Create a .py file and add the following script to it: import requests import json username = '[email protected]' #replace with an admin user's user name password = 'password' #replace with an admin user's password Sisense_url = 'http://localhost:8081' #replace with your Sisense url # Get Auth token url = Sisense_url+"/api/v1/authentication/login" payload = "username="+username.replace('@','%40')+"&password="+password headers = { 'content-type': "application/x-www-form-urlencoded" } response = requests.request("POST", url, data=payload, headers=headers) auth_token = response.json()["access_token"] auth_token = "Bearer " + auth_token headers = { 'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': auth_token } url = Sisense_url + '/api/v1/users' resendUrl = Sisense_url + '/api/v1/account/begin_activate' response = requests.request("GET", url, headers=headers) users = response.json() #Sending invites for inactive users total = 0 for item in users: active = item["active"] if not active: email = item["email"] payload = '{"email": ' +'"'+email+'"}' response = requests.request("POST", resendUrl, data=payload, headers=headers) print(item["email"]) total = total+1 print(total) 4) This process can be automated using a Windows Task Scheduler as well. That's it!565Views1like0CommentsMigrating Assets Across Environments Leveraging GIT
Migrating Assets Across Environments Leveraging GIT Sisense released its Git Integration for Linux version 2022.10. With the GIT GUI in Sisense, you can can do a lot of exciting things like version control or integrate into CI/CD pipelines. I went ahead and put together a quick demo on how a developer can leverage the Sisense Git Integration to migrate assets from their Dev Environment to the Prod Environment and see those changes reflected in the target application that assets are embedded in. In this video we cover: 1. How to create a Git project in Sisense 2. Add Assets to a project 3. Connect to a remote Git Repo. 4. Push Assets from Dev to a remote Github Repo. 5. Pull Assets from Git Repo into the prod server. 6. Checkout and Commit changes/revert. 7. See Changes reflected in the application Sisense is embedded into. For any additional questions about Enabling Git in your environment, or other capabilities, please see the Introduction to Sisense Git Documentation.1.7KViews1like0Comments