Create Users using Tableau API and Python User file will be in the format of userid, roleof the user. user1,Explorer user2,Creator User3,Viewer import tableauserverclient as TSC import csv userfile= open('C:/Users/myartha/Documents/Python Files/users_06112020.csv') usr = csv.reader(userfile) sourceusers=[] createdusers=[] pat = 'PersonalAccessToken' #your personal access token created on the UI server = TSC.Server('<servername>') # provide your server URL siteid='siteid' #yoursiteid from the server. This is not the nameof the site but id of the site tokenName = 'UserGroupScript' #provide your Token name used when creating personal access Token server.version='3.6' ta = TSC.PersonalAccessTokenAuth(token_name=tokenName, personal_access_token=pat, site_id=siteid) with server.auth.sign_in_with_personal_access_token(ta): userlist, pagination_item=server.users.get() for user in userlist: sourceusers.append(u...
This site provides you basic information on issues you might face regularly or commands that you need on day to day life. As an Author, I will be walking you though articles as i learn