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 (240 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, 2022 by KelseaIT (320 points)
0 votes
1 answer

Hello, We encoutered an issue with Adaxes in default configuration. We are mainly using Adaxes for its REST API, to automate identity lifecycle with our HRIS. We tried to update ... got enforced even on an API REST attribute change? If so how to disable it?

asked Aug 18, 2022 by ygini (240 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

We are getting this error on restapi when connecting. What could be causing this? We recently had to do a complete reinstall from a configuration backup due to a ... decrypt an authentication token. The decryption key is missing.','code':'unauthenticated'}'

asked Jan 31, 2023 by mark.it.admin (2.3k 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)
3,326 questions
3,025 answers
7,724 comments
544,678 users