{"id":1382,"date":"2019-08-30T10:18:25","date_gmt":"2019-08-30T08:18:25","guid":{"rendered":"https:\/\/www.provisior.nl\/techblog\/?p=1382"},"modified":"2019-08-30T10:18:25","modified_gmt":"2019-08-30T08:18:25","slug":"current-members-slack","status":"publish","type":"post","link":"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/","title":{"rendered":"Current members: Slack"},"content":{"rendered":"<p>As I wrote about providing full insight in user access rights for cloud applications as well in <a href=\"https:\/\/www.provisior.nl\/techblog\/2019\/08\/19\/full-insight-in-user-access-rights-at-all-times\/\">one of my previous blogs<\/a>, today I will start with a first example of this. We use Slack internally for quick communication between team members. Personally, I love <a href=\"https:\/\/slack.com\/intl\/en-nl\/\" rel=\"noopener noreferrer\" target=\"_blank\">Slack<\/a>. You can quickly send messages and share media in an easy to use tool. And it provides API&#8217;s so you can do some automation as well, which of course is where the real fun begins, right? <\/p>\n<p>To be able to show which users have access to Slack, all we need is a list that Provisior can link to employees. One of the API&#8217;s available lets us retrieve the list of Slack users within a certain workspace. We use the email address of users to link them in Provisior, which is one of the options you have (next to SAMAccountname, SID and Provisior&#8217;s internal EmployeeID). <\/p>\n<pre><code>$users = Get-SlackUser -Token $SlackToken | where Deleted -EQ $false | select -ExpandProperty Email<\/code><\/pre>\n<p>So with just one single line of PowerShell we can retrieve this and Provisior does the rest. As soon as a new Slack member is added or removed\/deactivated, this will automatically be reflected in the user&#8217;s current assets in Provisior. <\/p>\n<p>Note that I use the <a href=\"https:\/\/www.powershellgallery.com\/packages\/PSSlack\/\" rel=\"noopener noreferrer\" target=\"_blank\">PowerShell module<\/a> for Slack in this example. Of course you can call the Slack API&#8217;s with PowerShell directly as well. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I wrote about providing full insight in user access rights for cloud applications as well in one of my previous blogs, today I will start with a first example of this. We use Slack internally for quick communication between team members. Personally, I love Slack. You can quickly send<\/p>\n","protected":false},"author":2,"featured_media":1385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[103,97,102],"class_list":["post-1382","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-provisior","tag-compliancy","tag-powershell","tag-user-access-rights"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Current members: Slack - Provisior Tech Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Current members: Slack - Provisior Tech Blog\" \/>\n<meta property=\"og:description\" content=\"As I wrote about providing full insight in user access rights for cloud applications as well in one of my previous blogs, today I will start with a first example of this. We use Slack internally for quick communication between team members. Personally, I love Slack. You can quickly send\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/\" \/>\n<meta property=\"og:site_name\" content=\"Provisior Tech Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-30T08:18:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.provisior.nl\/techblog\/wp-content\/uploads\/2019\/08\/slack.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"783\" \/>\n\t<meta property=\"og:image:height\" content=\"275\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Stefan Krul-Donkersloot\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stefan Krul-Donkersloot\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/2019\\\/08\\\/30\\\/current-members-slack\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/2019\\\/08\\\/30\\\/current-members-slack\\\/\"},\"author\":{\"name\":\"Stefan Krul-Donkersloot\",\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/#\\\/schema\\\/person\\\/a43e8689cceb46a716db67f06fee6877\"},\"headline\":\"Current members: Slack\",\"datePublished\":\"2019-08-30T08:18:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/2019\\\/08\\\/30\\\/current-members-slack\\\/\"},\"wordCount\":219,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/2019\\\/08\\\/30\\\/current-members-slack\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/slack.jpg\",\"keywords\":[\"Compliancy\",\"PowerShell\",\"User access rights\"],\"articleSection\":[\"Provisior\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/2019\\\/08\\\/30\\\/current-members-slack\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/2019\\\/08\\\/30\\\/current-members-slack\\\/\",\"url\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/2019\\\/08\\\/30\\\/current-members-slack\\\/\",\"name\":\"Current members: Slack - Provisior Tech Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/2019\\\/08\\\/30\\\/current-members-slack\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/2019\\\/08\\\/30\\\/current-members-slack\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/slack.jpg\",\"datePublished\":\"2019-08-30T08:18:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/#\\\/schema\\\/person\\\/a43e8689cceb46a716db67f06fee6877\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/2019\\\/08\\\/30\\\/current-members-slack\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/2019\\\/08\\\/30\\\/current-members-slack\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/2019\\\/08\\\/30\\\/current-members-slack\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/slack.jpg\",\"contentUrl\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/slack.jpg\",\"width\":783,\"height\":275},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/2019\\\/08\\\/30\\\/current-members-slack\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Current members: Slack\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/#website\",\"url\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/\",\"name\":\"Provisior Tech Blog\",\"description\":\"Blogs to help you get the best out of Provisior, the leading Self-service and Automation platform.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/#\\\/schema\\\/person\\\/a43e8689cceb46a716db67f06fee6877\",\"name\":\"Stefan Krul-Donkersloot\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1b2f0b419a9fee792d6a39c1a7bc92b84a848dc7859123a556058736b6481ea7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1b2f0b419a9fee792d6a39c1a7bc92b84a848dc7859123a556058736b6481ea7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1b2f0b419a9fee792d6a39c1a7bc92b84a848dc7859123a556058736b6481ea7?s=96&d=mm&r=g\",\"caption\":\"Stefan Krul-Donkersloot\"},\"sameAs\":[\"https:\\\/\\\/www.provisior.com\"],\"url\":\"https:\\\/\\\/www.provisior.nl\\\/techblog\\\/author\\\/stefanprovisior\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Current members: Slack - Provisior Tech Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/","og_locale":"en_US","og_type":"article","og_title":"Current members: Slack - Provisior Tech Blog","og_description":"As I wrote about providing full insight in user access rights for cloud applications as well in one of my previous blogs, today I will start with a first example of this. We use Slack internally for quick communication between team members. Personally, I love Slack. You can quickly send","og_url":"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/","og_site_name":"Provisior Tech Blog","article_published_time":"2019-08-30T08:18:25+00:00","og_image":[{"width":783,"height":275,"url":"https:\/\/www.provisior.nl\/techblog\/wp-content\/uploads\/2019\/08\/slack.jpg","type":"image\/jpeg"}],"author":"Stefan Krul-Donkersloot","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Stefan Krul-Donkersloot","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/#article","isPartOf":{"@id":"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/"},"author":{"name":"Stefan Krul-Donkersloot","@id":"https:\/\/www.provisior.nl\/techblog\/#\/schema\/person\/a43e8689cceb46a716db67f06fee6877"},"headline":"Current members: Slack","datePublished":"2019-08-30T08:18:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/"},"wordCount":219,"commentCount":0,"image":{"@id":"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/#primaryimage"},"thumbnailUrl":"https:\/\/www.provisior.nl\/techblog\/wp-content\/uploads\/2019\/08\/slack.jpg","keywords":["Compliancy","PowerShell","User access rights"],"articleSection":["Provisior"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/","url":"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/","name":"Current members: Slack - Provisior Tech Blog","isPartOf":{"@id":"https:\/\/www.provisior.nl\/techblog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/#primaryimage"},"image":{"@id":"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/#primaryimage"},"thumbnailUrl":"https:\/\/www.provisior.nl\/techblog\/wp-content\/uploads\/2019\/08\/slack.jpg","datePublished":"2019-08-30T08:18:25+00:00","author":{"@id":"https:\/\/www.provisior.nl\/techblog\/#\/schema\/person\/a43e8689cceb46a716db67f06fee6877"},"breadcrumb":{"@id":"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/#primaryimage","url":"https:\/\/www.provisior.nl\/techblog\/wp-content\/uploads\/2019\/08\/slack.jpg","contentUrl":"https:\/\/www.provisior.nl\/techblog\/wp-content\/uploads\/2019\/08\/slack.jpg","width":783,"height":275},{"@type":"BreadcrumbList","@id":"https:\/\/www.provisior.nl\/techblog\/2019\/08\/30\/current-members-slack\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.provisior.nl\/techblog\/"},{"@type":"ListItem","position":2,"name":"Current members: Slack"}]},{"@type":"WebSite","@id":"https:\/\/www.provisior.nl\/techblog\/#website","url":"https:\/\/www.provisior.nl\/techblog\/","name":"Provisior Tech Blog","description":"Blogs to help you get the best out of Provisior, the leading Self-service and Automation platform.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.provisior.nl\/techblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.provisior.nl\/techblog\/#\/schema\/person\/a43e8689cceb46a716db67f06fee6877","name":"Stefan Krul-Donkersloot","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1b2f0b419a9fee792d6a39c1a7bc92b84a848dc7859123a556058736b6481ea7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1b2f0b419a9fee792d6a39c1a7bc92b84a848dc7859123a556058736b6481ea7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2f0b419a9fee792d6a39c1a7bc92b84a848dc7859123a556058736b6481ea7?s=96&d=mm&r=g","caption":"Stefan Krul-Donkersloot"},"sameAs":["https:\/\/www.provisior.com"],"url":"https:\/\/www.provisior.nl\/techblog\/author\/stefanprovisior\/"}]}},"_links":{"self":[{"href":"https:\/\/www.provisior.nl\/techblog\/wp-json\/wp\/v2\/posts\/1382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.provisior.nl\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.provisior.nl\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.provisior.nl\/techblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.provisior.nl\/techblog\/wp-json\/wp\/v2\/comments?post=1382"}],"version-history":[{"count":4,"href":"https:\/\/www.provisior.nl\/techblog\/wp-json\/wp\/v2\/posts\/1382\/revisions"}],"predecessor-version":[{"id":1387,"href":"https:\/\/www.provisior.nl\/techblog\/wp-json\/wp\/v2\/posts\/1382\/revisions\/1387"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.provisior.nl\/techblog\/wp-json\/wp\/v2\/media\/1385"}],"wp:attachment":[{"href":"https:\/\/www.provisior.nl\/techblog\/wp-json\/wp\/v2\/media?parent=1382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.provisior.nl\/techblog\/wp-json\/wp\/v2\/categories?post=1382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.provisior.nl\/techblog\/wp-json\/wp\/v2\/tags?post=1382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}