Use Powershell to get users of a goup in Oracle IDCS using REST API and export results to csv

charles leon 26 Reputation points
2023-12-14T19:38:26.1166667+00:00

I am looking for a way to script (Powershell) using REST API to get users from a group in Oracle IDCS and export the users to a csv. I want to get the following attribs of the users sent to the file: first name, last name, displayname, username, emailaddress, active, creation date, date added to group. Thanks

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-12-18T08:41:30.2666667+00:00

    Hello,

    You can use invoke-webrequest to call API with required parameters: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7.4#example-1-send-a-web-request.

    You need to check with the target end for the request and response format to better organization the request and also handle the response, sometimes a JSON or XML.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.