Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

License required for access mode non-interactive?

Posted on by Microsoft Employee

Hi Guys,

as fas as I now we can use 5 unlicensed non-interactive users for a crm online System.
I already used this in multiple scenarios which worked fine so far.

Today I've setup another scenario (create licensed officeuser, change CRM access mode, remove license of officeuser again) which suddenly seems to trigger changing the access mode of the user once again to 'administrative' - which makes a programmatic access of the crm System impossible due to permission-errors.

Did someone experienced a smiliar behaviour or is there a new way of programmatic access license?

Thanks for any help or guidance!

*This post is locked for comments

  • minohimself Profile Picture
    minohimself 2 on at
    RE: License required for access mode non-interactive?

    I had the same problem on one user i could change on two other users but not on the one. The problem was that the user had a tenant admin role.... after removing this role it stopped changing to administrative ;)

  • Zach G Profile Picture
    Zach G 15 on at
    RE: License required for access mode non-interactive?

    I have the same situation

    - Create Integration user

    - Assign full license

    - Update to Non-Interactive

    - Take away license

    Now it's listed as administrative.  Note: it is *not* currently disabled.

    When I go to the form to change it, it gives me the error message that Raphael referenced.  I tried to hit it from the web API and it did the same.  I tried to make a WF step to change it, and it actually told me I needed admin access to update the accessmode of a user... even though I executed the update w/the admin context.

    This is a Dynamics 365 instance that has been up and going quite a while:

    Microsoft Dynamics 365

    Version 1612 (8.2.2.154) (DB 8.2.2.154) online

    I'm hoping this isn't just new "functionality" that locks it down so it cannot be changed...

  • Clem Profile Picture
    Clem 2,541 on at
    RE: License required for access mode non-interactive?

    Hi Raphael,

    Unfortunately, sometimes few functionalities on trials are not working properly because of a bad provisioning of the environment.

    I'm not saying that it is the reason but might be related.

    To be honest, if the default changes via SDK are not working , something is wrong with your instant, as said, i used it during a migration and even in some Xtb plugins so ...

    Clément

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: License required for access mode non-interactive?

    Hi,

    sorry for late response - had some other issue with WebAPI.

    I used the same code as you posted afterwards - but it didn't change any behaviour.

    Since the system I'm working with is only a trial for testing purpose - it doesn't matter if it consumes a few licenses more or less.

    During the last few month I've experienced a few times different behaviours on one System where others behaves normally like expected. Solving these issues with MS Support took me already hours of time and happily here I'm not in need of it.

    Regards, Raphael

  • Clem Profile Picture
    Clem 2,541 on at
    RE: License required for access mode non-interactive?

    By using this code :

    Entity user = serviceProxy.Retrieve("systemuser", new Guid("5B4ACEA9-72F7-E711-A83A-000D3AB53DEC"), new Microsoft.Xrm.Sdk.Query.ColumnSet("isdisabled", "accessmode", "fullname"));

    user["accessmode"] = new OptionSetValue(4);

    serviceProxy.Update(user);

    it's working fine for me, the user was disabled, without any license.

    Are you admin of the system ?

    I used a lot this way to impersonate disabled users and from my knowledge if you have the necessary permission over the CRM (maybe o365 permission to check too) everything is working fine.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: License required for access mode non-interactive?

    Thanks,

    I gave it a shot but it doesn't work - as expected.

    Usually accessmode can always be changed in the form. But saving is prevented by a Business Validation.

    Same with changing by SDK.

    ErrorMessage: "The client access license cannot be changed because the user does not have a Microsoft Dynamics CRM Online license. To change the access mode, you must first add a license for this user in the Microsoft Online Service portal."

    So this is no Approach of solving my issue

  • Suggested answer
    Clem Profile Picture
    Clem 2,541 on at
    RE: License required for access mode non-interactive?

    I didn't face this particular behavior but you can still update the user Access Mode with a simple console application (AccessMode = 4 for NonInteractive).

    You can also use some Chrome plugin such as : chrome.google.com/.../bjnkkhimoaclnddigpphpgkfgeggokam to enabled the readonload form and update the value anyway.

    Regards,

    Clément

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans