0 votes

Hello

We are using the REST API with the Business Unit method to get all our users in once, and it works really well, the API return around 150 in a second when calling "api/directoryObjects/businessUnitMembers" and the appropriate "businessUnit" arg.

When we add a long list of extra field, it works also really well: "sAMAccountName,userPrincipalName,givenName,sn,cn,mail,proxyAddresses,telephoneNumber,employeeNumber,streetAddress,company,description,employeeID,employeeType,title,department,manager"

The issue is when we add "accountExpires" to this list of properties. Then the API call never end.

What is the proper way with Adaxes REST API to read the current expiration time for all accounts?

Thanks

by (200 points)
0

Hello,

For troubleshooting purposes, please, provide us with the script you are using to send the request. You can post the script here or send it to us at support@adaxes.com in TXT format. Additionally, please, specify the business unit members number.

0

Can you at least confirm that accountExpires is the proper attribute to use and is supposed to works with businessUnitMembers API ?

We talk about ~150 records in this BU.

And for the "script" that's a Swift native app, not use if it is appropriate to share it here.

My question is about the correct way with your API to read the current expiration date for each users in a BU. You don't provide any sample code in your documentation for that.

0

Hello,

Can you at least confirm that accountExpires is the proper attribute to use and is supposed to works with businessUnitMembers API ?

Yes, accountExpires is the correct attribute to get the account expiration date and it can be used in the properties parameter of the query.

My question is about the correct way with your API to read the current expiration date for each users in a BU. You don't provide any sample code in your documentation for that.

Please, have a look at Example 2: Retrieve business unit members with their department and account expiration date in the following SDK article: https://www.adaxes.com/sdk/REST_GetBusinessUnitMembers.

Please log in or register to answer this question.

Related questions

0 votes
1 answer

Hello! We are currently trying to use the REST API to search for all group objects in our domain, but the search result is only returning 1000 objects. We tried supplying a ... the request. Is there a way to retrieve more than 1000 objects using the REST API?

asked Feb 16 by KelseaIT (320 points)
0 votes
1 answer

Is it possible to add multiple members to a group in a singe call to the REST API? The example code only shows a single member. What would the data structure look like in that case?

asked Dec 13, 2021 by swengr59 (60 points)
0 votes
1 answer

I'm looking to find any Python examples of using the REST API. An Internet search didn't turn anything up.

asked Nov 25, 2021 by swengr59 (60 points)
0 votes
1 answer

I tried the script located here: http://www.adaxes.com/script-repository ... s-s346.htm The script works well for most fields (including adm-custom fields), but when ... a value something like "129915720000000000" instead of a date. Any way to resolve this?

asked Feb 15, 2017 by Kikaida (1.1k points)
0 votes
1 answer

Can you point me to documentation to upgrade from Adaxes 2019.2 ver 3.1.2.174230 to the current version please?

asked Jun 16, 2020 by msylvester (60 points)
2,779 questions
2,512 answers
6,574 comments
26,121 users