未加星标

Disable Power BI Workspace or group creation for certain users or groups

字体大小 | |
[系统(windows) 所属分类 系统(windows) | 发布者 店小二03 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏

One of the questions that I get asked sometimes is how to prevent users from creating groups / workspaces in Power BI. I recently found out this is actually possible and we’ll in this blog on how you can set that up. But before we continue it is good understand how workspaces in PowerBI currently work. Whenever you create a workspace it automatically creates a group in Azure AD and Office 365 with the same name. This makes sure you can use the Office 365 things like using files in the document library, calendar, conversations:


Disable Power BI Workspace or group creation for certain users or groups

By default all users in Office 365 have the permission to create Office 365 Groups and Power BI follow this. By design Office 365 Groups are intended to be created and managed by both admins and end users, to inculcate better collaboration among the team members of a project or students and staffs. However in some organizations, they practice strong security policy, as a result they require Office 365 Group creation to be controlled only by specific users. The theme here is ofcourse that workspaces and groups in Power BI are based on Azure AD and Office 365. That means you can also use those management tools to manage the security around it, similar as you would for Office 365. Let’s look at how you can do this and what it does to your Power BI. I used these two great blog posts to make it work:

https://drewmadelung.com/managing-office-365-group-creation-via-azure-ad/

http://www.jijitechnologies.com/blogs/disable-office365-group-creation-in-azureAD

I mostly used code from the top one to get it up and running, this is completlybased on PowerShell commands that makes changes to your Azure AD instance, there is no UI for it today.

Just one word of warning, please do not immediately run this in production and make sure you get advise from your Azure AD/PowerShell specialist as I am neither.

Here is the code to make it happen, I took those form the blog posts above that cover the actual PowerShell commands in more details.

'Install the AzureAD Preview if needed
Save-Module -Name AzureADPreview -Path C:\temp\ad
Install-Module -Name AzureADPreview
'Install AD http://connect.microsoft.com/site1164/Downloads/DownloadDetails.aspx?DownloadID=59185
'from this download get the Azure Active Directory PowerShell V1  Preview
$username = "YOURUSERNAME"
$password = ConvertTo-SecureString -String "PASSWORD" -AsPlainText -Force
'These are your AD credentials, it should be a user who is AD admin
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $password
'Connect to Azure AD
Connect-MsolService -Credential $cred
'Check all the setting
Get-MsolAllSettings | ForEach Values
'Does it return any value? then get the group ID you want here
Get-MsolGroup
'If no value is returned go to Azure AD and get the ID from the group you want to enable there from the Azure AD UI.
'Now finally Run this to disable group creation and then enable it for the group we picked up above.
'If you leave the groupid empty creating groups will only be possible for admins not for groups, you can change this later, one of the blog posts above describes how.
$Gpmodify = Get-MsolSettingTemplate | where-object {$_.displayname -eq “Group.Unified”}
$Setobj = $Gpmodify.CreateSettingsObject()
$Setobj[“EnableGroupCreation”] = “false”
$Setobj[“GroupCreationAllowedGroupId”] = "GROUPID"
New-MsolSettings SettingsObject $Setobj
'Check if it is set correctly:
Get-MsolAllSettings | ForEach Values

Now we can see that the Group Creation is turned off expect for


Disable Power BI Workspace or group creation for certain users or groups

Now let’s see what this does do for one of my users. I now log into Power BI as my non admin user and try to create a group:


Disable Power BI Workspace or group creation for certain users or groups

This results in:


Disable Power BI Workspace or group creation for certain users or groups

Which is exactly what we want.

Now I go back to Power BI and add the user to the “PBIGroupUsers” group that I gave access to create groups:


Disable Power BI Workspace or group creation for certain users or groups

And when we now try again, it works and the group\workspace gets created:


Disable Power BI Workspace or group creation for certain users or groups
So that is it. It is pretty cool that this just works
Disable Power BI Workspace or group creation for certain users or groups
.

本文系统(windows)相关术语:三级网络技术 计算机三级网络技术 网络技术基础 计算机网络技术

主题: PowerShellOfficeADP
分页:12
转载请注明
本文标题:Disable Power BI Workspace or group creation for certain users or groups
本站链接:http://www.codesec.net/view/533203.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(windows) | 评论(0) | 阅读(53)