Jump to content

Featured Replies

Posted

Just wanted to share that I made available a Unofficial Powershell module for managing Workspace ONE Access users.

It is still a work in progress, but I hope it is useful.

The Current version is available in the Powershell Gallery: https://www.powershellgallery.com/packages/PSWorkspaceOneAccess/1.0.0

Or keep an eye on my GitHub for updates the coming period.

A special thanks to @Akito Ogushi for helping me with the Directory Sync.

  • Replies 13
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Let me know if you want to explore other functions. I personally do not do Powershell  but I know our APIs pretty well.

  • Keith Simmons
    Keith Simmons

    Great to see this. I'm looking at the APIs to see how i can add a new Directory into WS1 and sync/manage users, I'm mostly coming from Ansible so might pull this powershell apart and re-work into my

  • Stefaan Dewulf
    Stefaan Dewulf

    Added a new command to the module: Get-WS1AuditInformation: Retrieves a detailed audit report for Workspace ONE Access events and replaces Get-WS1LoginAuditForUser, WS1LoginAuditForDateRange a

  • 2 weeks later...

Great to see this.
I'm looking at the APIs to see how i can add a new Directory into WS1 and sync/manage users, I'm mostly coming from Ansible so might pull this powershell apart and re-work into my future modules (i'll share once its in a shareable form)

  • 5 weeks later...

Awesome module!

@Sascha Warno @Stefaan Dewulf please tell me a way to create via API user record  in directory with type "Active Diirectory". Now I have to do it through synchronization. With a large number of users it is very inconvenient. There must be some way, please guide me)!

  • Author

What I did was set up the connector, but rather then wait for the synchronization to happen I force it using the powershell module every time a change occurs in AD. That way you get the added benefits from the connector also: group synchronization, attribute mapping like manager and so on, but the synchronization is nearly instant. 

my AD is about 1500+ users(((( and changes occurs often(... sync (and via API too) takes very long time(((

so i want to create users via API..... or by MSSQL operators (insert)..... via API i got error((

  • Author

Added a new command to the module:

  • Get-WS1AuditInformation: Retrieves a detailed audit report for Workspace ONE Access events and replaces Get-WS1LoginAuditForUser, WS1LoginAuditForDateRange and Get-WS1AuditReport. It allows filtering by object type, date range and username. The object returned is no longer json but is now a PowerShell object.

Updated version available on GitHub.

  • Author

I have never tried to update a AD directory user before. Will try and test this in a lab environment but the command Update-WS1User would need a lot of extra variables based on the user attributes that are configured for your environment.

Hi Stefaan! Thank you for answers! I want to create AD directory user first, not only edit). Please check this:

POST https://WS1_FQDN//SAAS/jersey/manager/api/scim/Users

RAW BODY:

{  
  "schemas": [  
    "urn:scim:schemas:core:1.0",  
    "urn:scim:schemas:extension:workspace:tenant:sva:1.0",  
    "urn:scim:schemas:extension:workspace:1.0",  
    "urn:scim:schemas:extension:enterprise:1.0"  
  ],  
  "externalId": "{{$guid}}",  
  "userName": "[email protected]",  
  "name": {  
    "givenName": "test6",  
    "familyName": "last6"  
  },  
  "emails": [  
    {  
      "value": "[email protected]"  
    }  
  ],  
  "urn:scim:schemas:extension:workspace:1.0": {  
        "internalUserType": "PROVISIONED",  
        "domain": "mydomain.active.directory",  
        "userPrincipalName": "[email protected]"  
      }  
}  

 

Also please check this:

https://theidentityguy.ca/2020/11/10/using-postman-to-manage-workspace-one-identities/comment-page-1/#respond

thiidentityguy says that create active directory user is possible

Edited by smile2008

1 hour ago, Sascha Warno said:

Where does he state that? He only shows examples for local, system and other directory. All of those behave different than Active Directory.

Thanks for the answer. I need the ability to create AD Directory-type users in granularity. Because synchronizing the entire directory for just one newly created user takes a lot of time and puts a heavy load on the infrastructure. Or I need the ability to specify a specific user during synchronization (via filters) via API. Maybe I need to deploy AD Directory as JIT? As far as I understand, groups (their synchronization and membership) are also supported in this mode at the moment, I saw somewhere that this is enabled via API.

  • Employee

The sync should not be as taxing as it is only doing delta syncs. So for all existing users it would just query if the user object changed from the last time it was synced and only for the delta it would request the user details.

JIT only works if you leverage an 3rd party IDP and Other Directory.

 

Create an account or sign in to comment