Anonymous_User Absent Member.
Absent Member.
261 views

Office 365 license GCV problem


Hello,

I've created an Office 365 driver and I am able to syncronize users to
O365. I have created a role which gives a resource, which gives the
following entitlement: License Entitlement

On this entitlement, I am able to choose 2 values:

fmktst:ENTERPRISEPACK_FACULTY
fmktst:ENTERPRISEPACK_STUDENT

These are my two service plans in O365, and when doing a PS command to
get the same result: Get-MsolAccountSku

AccountSkuId
------------
fmktst:ENTERPRISEPACK_FACULTY
fmktst:ENTERPRISEPACK_STUDENT

So that part is correct. So I chose fmktst:ENTERPRISEPACK_FACULTY in my
entitlement.

So when users get the UserAccount entitlement and this License
Entitlement, the user is created and gets the licenses bound to the
fmktst:ENTERPRISEPACK_FACULTY service plan.

The fmktst:ENTERPRISEPACK_FACULTY service plan has the following
licensed bound(I ran this PS command: Get-MsolAccountSku | Where-Object
{$_.SkuPartNumber -eq "ENTERPRISEPACK"} | `ForEach-Object
{$_.ServiceStatus} 😞

ServicePlan
ProvisioningStatus
-----------
------------------
RMS_S_ENTERPRISE
Success
OFFICESUBSCRIPTION
Success
MCOSTANDARD
Success
SHAREPOINTWAC_EDU
Success
SHAREPOINTENTERPRISE_EDU
Success
EXCHANGE_S_ENTERPRISE
Success

And when creating a user, he does get all of those.

Now, it is possible on the O365 driver, to disable certain licenses on a
given service plan. Under Driver Configuration, Driver Parameters,
Subscriber Options, you have Office365 License Options Settings. Here
you write the Custom License Name, which in my case should be
fmktst:ENTERPRISEPACK_FACULTY and then the services I want to DISABLE on
this service plan in the field beneath. I write:
SHAREPOINTWAC_EDU,SHAREPOINTENTERPRISE_EDU because I want to disable
Sharepoint. This is just a test.

Now, when syncronizing a user, I get the following error in the .NET
Remote Loader log:


Code:
--------------------
DirXML: [04-03-14 13:10:11.841]: TRACE: SUB: Session Manager Initialized.
DirXML: [04-03-14 13:10:11.841]: TRACE: SUB: Connecting to Microsoft Online Services ...
DirXML: [04-03-14 13:10:11.856]: TRACE: SUB: Connecting to Office 365 ...
DirXML: [04-03-14 13:10:16.046]: TRACE: SUB: Connection Successful.
DirXML: [04-03-14 13:10:16.046]: TRACE: SUB: Connecting to Exchange Online Services ...
DirXML: [04-03-14 13:10:31.742]: TRACE: SUB: Connection Successful.
DirXML: [04-03-14 13:10:31.742]: TRACE: SUB: Creating Custom Licenses
DirXML: [04-03-14 13:10:32.273]: TRACE: SUB: Unable to create custom license. Exception of type 'DXMLBase.Xds.XdsRetryException' was thrown.
--------------------


This results in the user being created in O365, but with all licenses.

Any idea what might be going on?

Thanks in advance,

Jacob.


--
jacmarpet
------------------------------------------------------------------------
jacmarpet's Profile: https://forums.netiq.com/member.php?userid=415
View this thread: https://forums.netiq.com/showthread.php?t=50438

Labels (1)
0 Likes
7 Replies
Knowledge Partner
Knowledge Partner

Re: Office 365 license GCV problem

On 4/3/2014 9:04 AM, jacmarpet wrote:
> Now, when syncronizing a user, I get the following error in the .NET
> Remote Loader log:
>
>
> Code:
> --------------------
> DirXML: [04-03-14 13:10:11.841]: TRACE: SUB: Session Manager Initialized.
> DirXML: [04-03-14 13:10:11.841]: TRACE: SUB: Connecting to Microsoft Online Services ...
> DirXML: [04-03-14 13:10:11.856]: TRACE: SUB: Connecting to Office 365 ...
> DirXML: [04-03-14 13:10:16.046]: TRACE: SUB: Connection Successful.
> DirXML: [04-03-14 13:10:16.046]: TRACE: SUB: Connecting to Exchange Online Services ...
> DirXML: [04-03-14 13:10:31.742]: TRACE: SUB: Connection Successful.
> DirXML: [04-03-14 13:10:31.742]: TRACE: SUB: Creating Custom Licenses
> DirXML: [04-03-14 13:10:32.273]: TRACE: SUB: Unable to create custom license. Exception of type 'DXMLBase.Xds.XdsRetryException' was thrown.
> --------------------
>
>
> This results in the user being created in O365, but with all licenses.
>
> Any idea what might be going on?


So this is an issue inside the shimi itself. So you need to up the
trace level and hope that the developers left in some good tracing.

(I would start at level 25 to see, usually it goes no higher than 25).

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Office 365 license GCV problem


Can you post a level 5 startup trace from the RL side and level 3 trace
from the engine?



jacmarpet;242954 Wrote:
> Hello,
>
> I've created an Office 365 driver and I am able to syncronize users to
> O365. I have created a role which gives a resource, which gives the
> following entitlement: License Entitlement
>
> On this entitlement, I am able to choose 2 values:
>
> fmktst:ENTERPRISEPACK_FACULTY
> fmktst:ENTERPRISEPACK_STUDENT
>
> These are my two service plans in O365, and when doing a PS command to
> get the same result: Get-MsolAccountSku
>
> AccountSkuId
> ------------
> fmktst:ENTERPRISEPACK_FACULTY
> fmktst:ENTERPRISEPACK_STUDENT
>
> So that part is correct. So I chose fmktst:ENTERPRISEPACK_FACULTY in my
> entitlement.
>
> So when users get the UserAccount entitlement and this License
> Entitlement, the user is created and gets the licenses bound to the
> fmktst:ENTERPRISEPACK_FACULTY service plan.
>
> The fmktst:ENTERPRISEPACK_FACULTY service plan has the following
> licensed bound(I ran this PS command: Get-MsolAccountSku | Where-Object
> {$_.SkuPartNumber -eq "ENTERPRISEPACK"} | `ForEach-Object
> {$_.ServiceStatus} 😞
>
> ServicePlan
> ProvisioningStatus
> -----------
> ------------------
> RMS_S_ENTERPRISE
> Success
> OFFICESUBSCRIPTION
> Success
> MCOSTANDARD
> Success
> SHAREPOINTWAC_EDU
> Success
> SHAREPOINTENTERPRISE_EDU
> Success
> EXCHANGE_S_ENTERPRISE
> Success
>
> And when creating a user, he does get all of those.
>
> Now, it is possible on the O365 driver, to disable certain licenses on a
> given service plan. Under Driver Configuration, Driver Parameters,
> Subscriber Options, you have Office365 License Options Settings. Here
> you write the Custom License Name, which in my case should be
> fmktst:ENTERPRISEPACK_FACULTY and then the services I want to DISABLE on
> this service plan in the field beneath. I write:
> SHAREPOINTWAC_EDU,SHAREPOINTENTERPRISE_EDU because I want to disable
> Sharepoint. This is just a test.
>
> Now, when syncronizing a user, I get the following error in the .NET
> Remote Loader log:
>
> >

Code:
--------------------
> > DirXML: [04-03-14 13:10:11.841]: TRACE: SUB: Session Manager Initialized.

> DirXML: [04-03-14 13:10:11.841]: TRACE: SUB: Connecting to Microsoft Online Services ...
> DirXML: [04-03-14 13:10:11.856]: TRACE: SUB: Connecting to Office 365 ...
> DirXML: [04-03-14 13:10:16.046]: TRACE: SUB: Connection Successful.
> DirXML: [04-03-14 13:10:16.046]: TRACE: SUB: Connecting to Exchange Online Services ...
> DirXML: [04-03-14 13:10:31.742]: TRACE: SUB: Connection Successful.
> DirXML: [04-03-14 13:10:31.742]: TRACE: SUB: Creating Custom Licenses
> DirXML: [04-03-14 13:10:32.273]: TRACE: SUB: Unable to create custom license. Exception of type 'DXMLBase.Xds.XdsRetryException' was thrown.

--------------------
> >

>
> This results in the user being created in O365, but with all
> licenses.
>
> Any idea what might be going on?
>
> Thanks in advance,
>
> Jacob.



--
vivekbm
------------------------------------------------------------------------
vivekbm's Profile: https://forums.netiq.com/member.php?userid=528
View this thread: https://forums.netiq.com/showthread.php?t=50438

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Office 365 license GCV problem


Also please include the event trace which is failing along with the
earlier traces requested.


--
vivekbm
------------------------------------------------------------------------
vivekbm's Profile: https://forums.netiq.com/member.php?userid=528
View this thread: https://forums.netiq.com/showthread.php?t=50438

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Office 365 license GCV problem


Hello,

I turned up the trace on the RL to 25 and now I get some more info. What
I found out was, the Custom License Name GCV is just a name for your
custom license. Not the actual license plan name in your O365 solution.
I wrote fmktst:ENTERPRISEPACK_FACULTY before, and the PS command fails,
because it creates a variable with that name, and because it has ":" in
it, it fauls to declare the variable. So now I have changed the name of
it to test1. The creation of the variable looks like this:


Code:
--------------------

DirXML: [04-03-14 16:56:07.624]: TRACE: SUB: Connection Successful.
DirXML: [04-03-14 16:56:07.624]: TRACE: SUB: Creating Custom Licenses
DirXML: [04-03-14 16:56:07.639]: TRACE: SUB: get-pssession
DirXML: [04-03-14 16:56:07.639]: TRACE: SUB: Get-MSolAccountSku
DirXML: [04-03-14 16:56:08.030]: TRACE: SUB: get-pssession
DirXML: [04-03-14 16:56:08.045]: TRACE: SUB: $fmktst_ENTERPRISEPACK_FACULTY_test1=New-MSolLicenseOptions -AccountSkuId fmktst:ENTERPRISEPACK_FACULTY -DisabledPlans RMS_S_ENTERPRISE,OFFICESUBSCRIPTION,MCOSTANDARD,SHAREPOINTWAC_EDU,SHAREPOINTENTERPRISE_EDU,EXCHANGE_S_ENTERPRISE
DirXML: [04-03-14 16:56:08.045]: TRACE: SUB: Created custom license for Office365 - fmktst:ENTERPRISEPACK_FACULTY(test1)
DirXML: [04-03-14 16:56:08.045]: TRACE: SUB: get-pssession
DirXML: [04-03-14 16:56:08.045]: TRACE: SUB: $fmktst_ENTERPRISEPACK_STUDENT_test1=New-MSolLicenseOptions -AccountSkuId fmktst:ENTERPRISEPACK_STUDENT -DisabledPlans RMS_S_ENTERPRISE,OFFICESUBSCRIPTION,MCOSTANDARD,SHAREPOINTWAC_EDU,SHAREPOINTENTERPRISE_EDU,EXCHANGE_S_ENTERPRISE
DirXML: [04-03-14 16:56:08.077]: TRACE: SUB: Created custom license for Office365 - fmktst:ENTERPRISEPACK_STUDENT(test1)
DirXML: [04-03-14 16:56:08.092]: TRACE: Remote Loader: SubscriptionShim.init() returned:
<nds dtdversion="3.5">
<source>
<product instance="\FMKMETA\dk\services\idm\Driver Set\O365-01" version="4.0.0.2" build="201404031040">Identity Manager Driver for Microsoft Office365</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<status level="success" />
</output>

--------------------


The next thing that happens is this:


Code:
--------------------

DirXML: [04-03-14 16:56:41.310]: TRACE: SUB: get-pssession
DirXML: [04-03-14 16:56:41.310]: TRACE: SUB: get-msoluser -ObjectID fd72be52-25a4-4e50-9958-969036a40d9c
DirXML: [04-03-14 16:56:41.732]: TRACE: SUB: get-pssession
DirXML: [04-03-14 16:56:41.732]: TRACE: SUB: Set-MSolUser -ObjectID fd72be52-25a4-4e50-9958-969036a40d9c -UsageLocation 'dk'
DirXML: [04-03-14 16:56:42.484]: TRACE: SUB: get-pssession
DirXML: [04-03-14 16:56:42.484]: TRACE: SUB: Set-MSolUserLicense -UserPrincipalName 'IDMTestBruger010@fmktst.onmicrosoft.com' -AddLicenses 'fmktst:ENTERPRISEPACK_FACULTY'
DirXML: [04-03-14 16:56:43.421]: TRACE: Remote Loader: SubscriptionShim.execute() returned:
DirXML: [04-03-14 16:56:43.421]: TRACE:
<nds dtdversion="3.5">
<source>
<product instance="\FMKMETA\dk\services\idm\Driver Set\O365-01" version="4.0.0.2" build="201404031040">Identity Manager Driver for Microsoft Office365</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<status level="success" event-id="meta6#20140403144819#1#3:ac38d142-6705-4ef0-b1a9-42d138ac0567" />
</output>

--------------------


As can be seen, it gives the user the standard
fmktst:ENTERPRISEPACK_FACULTY so the user gets all of the licenses. I
think this is because it just takes the value from the entitlement the
user has been given, which has that value. Is it not told anywhere to
actually use the custom one I have defined. So the question is, how
should this be implemented?

Thanks in advance,

Jacob.


--
jacmarpet
------------------------------------------------------------------------
jacmarpet's Profile: https://forums.netiq.com/member.php?userid=415
View this thread: https://forums.netiq.com/showthread.php?t=50438

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Office 365 license GCV problem


I think it is supposed to run a command like this:

Set-MsolUserLicense -UserPrincipalName
'IDMTestBruger010@fmktst.onmicrosoft.com' -LicenseOptions
$fmktst_ENTERPRISEPACK_STUDENT_test1

But this command is never run anywhere. Am I supposed to change the
License entitlement and set it to Administrator-defined values instead
of values from the application? Or how do I make this work?

Jacob.


--
jacmarpet
------------------------------------------------------------------------
jacmarpet's Profile: https://forums.netiq.com/member.php?userid=415
View this thread: https://forums.netiq.com/showthread.php?t=50438

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Office 365 license GCV problem


Hello again,

After fiddling around quite a bit, we found out that it's working as
intended, you just have to be super patient and do the things in the
right order.

1. Set log level to 25 on the remote loader
2. Deploy your custom licenses which you craeted in the Subscriber
Options section on the driver.
3. Look in the RL log untill you see "Created custom license for
Office365"
4. Do an entitlement refresh
5. And now the custom license values should have been added to the
entitlement and you can choose them when creating a new ressource.

Jacob.


--
jacmarpet
------------------------------------------------------------------------
jacmarpet's Profile: https://forums.netiq.com/member.php?userid=415
View this thread: https://forums.netiq.com/showthread.php?t=50438

0 Likes
Knowledge Partner
Knowledge Partner

Re: Office 365 license GCV problem

On 4/7/2014 3:34 AM, jacmarpet wrote:
>
> Hello again,
>
> After fiddling around quite a bit, we found out that it's working as
> intended, you just have to be super patient and do the things in the
> right order.
>
> 1. Set log level to 25 on the remote loader
> 2. Deploy your custom licenses which you craeted in the Subscriber
> Options section on the driver.
> 3. Look in the RL log untill you see "Created custom license for
> Office365"
> 4. Do an entitlement refresh
> 5. And now the custom license values should have been added to the
> entitlement and you can choose them when creating a new ressource.


Can you post the XML Content of the entitlementConfiguration object?
I.e. Is the driver rebuilding it with static values? Is it remapping
the CODE MAP Refresh query to return values based on the GCV or
something else?


0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.