web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Best way to enable 'Po...
Power Apps
Unanswered

Best way to enable 'Power Apps for Office 365' Service Plan/Apps for all of my E3 users

(0) ShareShare
ReportReport
Posted on by 47

Hi,

 

My org is looking to make Power Apps available for all of our E3 users.  The Power Shell scripts/cmdlets we previously used to assign these service seem to have been deprecated (Previously used the scripts found here). 

 

As far as I'm aware we don't leverage group based licensing.   What are my options here?

lcordov2_0-1704812280188.png

 

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    Double check your licensing in the admin center. Power Apps is included in the E3 license and is enabled by default. So unless someone turned it off it should be enabled already.  The particular script you referenced is no longer valid, but you can still enable licensing in Office 365 using PowerShell.  Assign Microsoft 365 licenses to user accounts with PowerShell - Microsoft 365 Enterprise | Microsoft Learn

  • lcordov Profile Picture
    47 on at

    Unfortunately it is not enabled for all of our E3 users.

     

    So I am tasked with making sure all of our E3 users have this service enabled while leaving the rest of their plans untouched.

     

    I reviewed the link you shared, and this example seems most closely related to my use case.  However in this example they are specifying a user with an E5 license and turning off specific service plans.  I on the otherhand, want to perform the script for all E3 users while enabling the Power Apps for Office 365 service plan.  Do you have any recommendations on how I can modify this script to accomplish this?

    lcordov2_0-1704814585158.png

     

     

  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    No specific advice I can offer. Its been a while since I worked with a PowerShell script like that.  But that is definitely the basic kind of a script you will be using.  The way it works is that all skus will be enabled except the ones you add as disabled.  So the trick will be writing the script to retrieve the current disabled plans and maintain those, except for the Power Apps plan.  There is a line in the script that retrieves a user's current disabled plans. You'll want to get that list, remove Power Apps from it and then reapply it the way the script does.

  • lcordov Profile Picture
    47 on at

    I was able to modify one of the example scripts on the page as shown:

     

     

    $userLicense = Get-MgUserLicenseDetail -UserId "TESTUSER@TEST.COM"
    $userDisabledPlans = $userLicense.ServicePlans | `
     Where ProvisioningStatus -eq "Disabled" | `
     Select -ExpandProperty ServicePlanId
    
    $e3Sku = Get-MgSubscribedSku -All | Where SkuPartNumber -eq 'ENTERPRISEPACK'
    $newDisabledPlans = $e3Sku.ServicePlans | `
     Where ServicePlanName -in ("SWAY") | `
     Select -ExpandProperty ServicePlanId
    
    $disabledPlans = ($userDisabledPlans + $newDisabledPlans) | Select -Unique
    
    $addLicenses = @(
     @{
     SkuId = $e3Sku.SkuId
     DisabledPlans = $disabledPlans
     }
    )
    
    Set-MgUserLicense -UserId "TESTUSER@TEST.COM" -AddLicenses $addLicenses -RemoveLicenses @()

     

     

     

    This script will disable the "SWAY" service plan for the specified E3 licensed user while leaving all other service plans untouched and works perfectly.

     

    Now I want to try reversing it, rather than disabling the service "SWAY" service plan I want to enable it, while leaving all other service plans untouched. I tried to modify the script as follows:

     

     

     

    $userLicense = Get-MgUserLicenseDetail -UserId "TESTUSER@TEST.COM"
    $userDisabledPlans = $userLicense.ServicePlans | `
     Where ProvisioningStatus -eq "Disabled" | `
     Select -ExpandProperty ServicePlanId
    
    $e3Sku = Get-MgSubscribedSku -All | Where SkuPartNumber -eq 'ENTERPRISEPACK'
    $swayServicePlan = $e3Sku.ServicePlans | `
     Where ServicePlanName -eq "SWAY"
    
    # Check if the Sway service plan is found
    if ($swayServicePlan -ne $null) {
     $plansToEnable = @($swayServicePlan.ServicePlanId)
    
     # Remove the Sway service plan from the existing disabled plans
     $plansToEnable = $plansToEnable | Where { $userDisabledPlans -notcontains $_ }
    
     $addLicenses = @(
     @{
     SkuId = $e3Sku.SkuId
     DisabledPlans = $userDisabledPlans
     EnabledPlans = $plansToEnable
     }
     )
    
     Set-MgUserLicense -UserId "TESTUSER@TEST.COM" -AddLicenses $addLicenses -RemoveLicenses @()
    } else {
     Write-Host "Sway service plan not found in the specified E3 SKU."
    }

     

     

     

    But the script does not seem to work, it does not enable SWAY and I receive the message (blurred user email out):

    lcordov2_0-1704819808986.png

    Does anyone have any ideas as to how I can get this working?

     

  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    As I mentioned in my previous reply, there is no way to Enable a specific plan. By default when setting licenses all plans are enabled unless they are specifically disabled.  So what you need to do is get the disabledplans for the user and then remove the sku for "Sway" from that collection of disabledplans. Then when you run the add licenses step it will disable all the other remaining licenses in disabledplans, but not "Sway" since you removed it.  If Sway is no longer in the disabled plans then it will be enabled.

  • lcordov Profile Picture
    47 on at

    Ahh I see, I misunderstood your previous reply.  I will try to adjust accordingly and will post back here with my findings.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard