Title: #add a user to scubscription on a workbook on a Schedule is not working · Issue #366 · tableau/server-client-python · GitHub
Open Graph Title: #add a user to scubscription on a workbook on a Schedule is not working · Issue #366 · tableau/server-client-python
X Title: #add a user to scubscription on a workbook on a Schedule is not working · Issue #366 · tableau/server-client-python
Description: #Subscription script- runs but does not create a subscription for a user on workbook, of a schedule import tableauserverclient as tsc tauth = tsc.TableauAuth('ID', 'PWD', site_id='Sitename') server = tsc.Server('serverURL', use_server_ve...
Open Graph Description: #Subscription script- runs but does not create a subscription for a user on workbook, of a schedule import tableauserverclient as tsc tauth = tsc.TableauAuth('ID', 'PWD', site_id='Sitename') server...
X Description: #Subscription script- runs but does not create a subscription for a user on workbook, of a schedule import tableauserverclient as tsc tauth = tsc.TableauAuth('ID', 'PWD', site_id=...
Opengraph URL: https://github.com/tableau/server-client-python/issues/366
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"#add a user to scubscription on a workbook on a Schedule is not working","articleBody":"#Subscription script- runs but does not create a subscription for a user on workbook, of a schedule\r\n\r\nimport tableauserverclient as tsc\r\n\r\ntauth = tsc.TableauAuth('ID', 'PWD', site_id='Sitename')\r\nserver = tsc.Server('serverURL', use_server_version=True)\r\nserver.auth.sign_in(tauth)\r\n\r\n\r\n#to get workbookID\r\nreq_option = tsc.RequestOptions()\r\nreq_option.filter.add(tsc.Filter(tsc.RequestOptions.Field.Name,\r\n tsc.RequestOptions.Operator.Equals,\r\n 'Product Version Dashboard test 2'))\r\nworkobj = server.workbooks.get(req_option)\r\nprint('workobj', workobj[0][0].name)\r\nworkbookid = workobj[0][0].id \r\nprint(workbookid)\r\n\r\ntarget = (workbookid, 'workbook')\r\n\r\nprint('target:', target)\r\n\r\n\r\n#To get schedule ID of schedule \"11AM EST Daily\"\r\nsubobj= server.schedules.get()\r\n for sbj in subobj[0]:\r\n if sbj.name ==\"11AM EST Daily\":\r\n sbjid = (sbj.id)\r\n print(sbj.name ,sbjid)\r\n# print('sbj', sbj[0][0])\r\n \r\n\r\nreq_opt = tsc.RequestOptions()\r\nreq_opt.filter.add(tsc.Filter(tsc.RequestOptions.Field.Name, tsc.RequestOptions.Operator.Equals, 'cordellr'))\r\nu = server.users.get(req_opt)\r\nprint('u', u)\r\nuid = u[0][0].id\r\nprint('uid',uid)\r\n\r\nsubscipid = server.subscriptions.get()\r\nprint('subscipid', subscipid[0][0].target)\r\n\r\n\r\n# create a new SubscriptionItem object.\r\nnewSub = tsc.SubscriptionItem('My Subscription', sbjid, uid, target)\r\nprint('newSub', newSub)\r\n\r\n#output generated: but the subscription did not get created for user who is Site admin having all access #to the site connection\r\n#newSub \u003cSubscription subject(My Subscription) schedule_id(eb92f0ab-0cfc-422d-#b87e-1e23522f1106) #user_id(62d9dee9-10c8-4fcf-ab04-99981f770204) target(('c95c0459-#34ea-47e1-8871-#badcab1e875c', 'workbook'))","author":{"url":"https://github.com/mehuldan","@type":"Person","name":"mehuldan"},"datePublished":"2018-11-21T15:56:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/366/server-client-python/issues/366"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e7c34003-e2f2-7c14-b0cc-5ed4655616f3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE88:1074E3:DD0F7A:11D704F:69906828 |
| html-safe-nonce | 8f8dbe2fbd8d0e2727234c23e14ffe6020377e4d5dec6c259b548558b6d640c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTg4OjEwNzRFMzpERDBGN0E6MTFENzA0Rjo2OTkwNjgyOCIsInZpc2l0b3JfaWQiOiIzMzYyNTQ3NTY2MDY0NzAxODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 79ee407d26b4785102edce2e11142ddedc4082d5afe3b35f28f73251bc67b308 |
| hovercard-subject-tag | issue:383183743 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/tableau/server-client-python/366/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0133ddd9725b9dc094d6c3f68d3577ca508a8e5118c2762b0b31640c19ebb6df/tableau/server-client-python/issues/366 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0133ddd9725b9dc094d6c3f68d3577ca508a8e5118c2762b0b31640c19ebb6df/tableau/server-client-python/issues/366 |
| og:image:alt | #Subscription script- runs but does not create a subscription for a user on workbook, of a schedule import tableauserverclient as tsc tauth = tsc.TableauAuth('ID', 'PWD', site_id='Sitename') server... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mehuldan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/tableau/server-client-python git https://github.com/tableau/server-client-python.git |
| octolytics-dimension-user_id | 828667 |
| octolytics-dimension-user_login | tableau |
| octolytics-dimension-repository_id | 62177327 |
| octolytics-dimension-repository_nwo | tableau/server-client-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 62177327 |
| octolytics-dimension-repository_network_root_nwo | tableau/server-client-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width