Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Identify user role (administrator) using XML API

Guest
Feb 19, 2019 Feb 19, 2019

I need to identify if a specific user is a member of the built-in group Administrators. I expend quite some time on the documentation List of all WebServices APIs for Adobe Connect  but couldn't find any service that would return this information.

Does anybody have some light to share?

1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Feb 21, 2019 Feb 21, 2019

Finally, I managed to do what I needed.

The request https://server.com/api/xml?action=principal-list&session=breezz&filter-type=admins will return the admin group.

Then you need to use the principal-id of the previous result in the group-id parameter like this:

https://server.com/api/xml?action=principal-list&session=breezz&group-id=11007&filter-is-member=true

Best regards,

Ronaldo

Translate
Engaged ,
Feb 19, 2019 Feb 19, 2019

Did you log in as an admin and look in the Users and Groups section under Administration tab to see if he is listed as a member of that group?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 19, 2019 Feb 19, 2019

The user is in the group Administrator, I can see it there. The problem is that I need to verify that using the XML API, because I am working on a schedule integration. I need something like this

http://server_name/api/xml

    ?action=permissions-info

    &acl-id=integer

    &principal-id=integer

    &filter-definition=value

    &sort-definition=value

Please check this link to get a clear picture of what I am trying to accomplish: permissions‑info

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 19, 2019 Feb 19, 2019

Pretty sure that if you call the principal-info call, you will get a descriptor of type=xxxx. This will specify what, if any, system groups the user is in.

Adobe Connect Help | principal-info

The list of user types can be found here, scroll down to principal types:

Common XML elements and attributes for Web Services

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 20, 2019 Feb 20, 2019

My initial thought on principal-info was that it would give me what I need. Unfortunately, it does not. This is the response I got from principal-info:

<resultroot>

  <contact>

    <email r**************@email.com</email>

    <first-name>Ronaldo</first-name>

    <last-name>Canesqui</last-name>

  </contact>

  <preferences acl-id="13772323" lang="en" time-zone-id="35" />

  <principal account-id="7" disabled="" has-children="false" is-ecommerce="false" is-hidden="false" is-primary="false" principal-id="13772323" tos-status="" type="user">

    <ext-login>r*********@email.com</ext-login>

    <login>r************@email.com</login>

    <name>Ronaldo Canesqui</name>

    <email>r************@email.com</email>

    <first-name>Ronaldo</first-name>

    <last-name>Canesqui</last-name>

    <user-suspended>false</user-suspended>

  </principal>

</resultroot>

The type is "user", no matter if the user is a member of the Administrator group or not. Maybe I am missing something in the group settings.

Thank you for your help anyway.

Best regards,

Ronaldo

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 21, 2019 Feb 21, 2019
LATEST

Finally, I managed to do what I needed.

The request https://server.com/api/xml?action=principal-list&session=breezz&filter-type=admins will return the admin group.

Then you need to use the principal-id of the previous result in the group-id parameter like this:

https://server.com/api/xml?action=principal-list&session=breezz&group-id=11007&filter-is-member=true

Best regards,

Ronaldo

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines