• Products
  • Solutions
  • Customers
  • Resources
  • Company
  • Pricing
  • Download
Try Playground
  • Security
  • Add-NCacheUserOrGroup
Show / Hide Table of Contents
  • Command-Line Interface
  • Cmdlets in Different Editions
  • PowerShell on Windows
    • Setting Up PowerShell Environment
    • Install PowerShell without NCache Installation
  • Install-NCacheModule
  • Client Management
    • Add-ClientNode
    • Remove-ClientNode
    • Add-ClientNodeSecurity
  • Cache Management
    • New-Cache
    • Start-Cache
    • Stop-Cache
    • Set-CacheConfiguration
    • Export-CacheData
    • Export-CacheKeys
    • Export-CacheConfiguration
    • Get-CacheCount
    • Clear-Cache
    • Remove-Cache
    • Set-NCServiceConfigSetting
  • Client Cache
    • New-ClientCache
    • Add-ClientCacheRefDatatype
    • Remove-ClientCacheRefDatatype
    • Remove-ClientCache
  • Node Management
    • Add-Node
    • Remove-Node
  • Query Index
    • Add-QueryIndex
    • Remove-QueryIndex
  • Loader & Refresher
    • Add-LoaderDataSet
    • Invoke-RefresherDataset
    • Remove-LoaderDataSet
    • Add-StartupLoader
    • Remove-StartupLoader
  • DataSource Providers
    • Add-BackingSource
    • Remove-BackingSource
  • Custom Dependency
    • Add-CustomDependency
    • Remove-CustomDependency
  • Pub/Sub Messaging
    • Get-Topics
  • Bridge
    • New-Bridge
    • Add-BridgeNode
    • Add-BridgeCache
    • Start-Bridge
    • Set-BridgeCacheMode
    • Start-BridgeStateTransfer
    • Stop-Bridge
    • Remove-Bridge
    • Remove-BridgeCache
    • Remove-BridgeNode
  • Mapreduce
    • Add-MapReduce
  • Compact Serilaization
    • Add-CompactType
    • Add-PortableType
    • Remove-PortableType
    • Remove-CompactType
  • Security
    • Enable-NCacheSecurity
    • Add-NCacheUserOrGroup
    • Remove-NCacheUserOrGroup
    • Enable-NCacheTLS
    • Disable-NCacheTLS
    • Disable-NCacheSecurity
    • Enable-NCEncryption
    • Disable-NCEncryption
  • Data Persistence
    • Suspend-NCacheDataPersistence
    • Resume-NCacheDataPersistence
  • Monitoring
    • Get-Caches
    • Get-CacheLogs
    • Get-CacheLogsList
    • Get-ConnectedClients
    • Get-CacheClientStatistics
    • Get-CacheServerStatistics
    • Add-TestData
    • Test-Stress
    • Get-ClusterHealth
    • New-MemoryDump
    • Get-MemoryDumpList
    • Send-MemoryDump
    • Remove-MemoryDump
    • Measure-CachePerformance
    • Invoke-ServerLogger
    • Import-CacheData
  • Management Center
    • Start-NCacheManagementCenter
    • Stop-NCacheManagementCenter
    • Set-CacheServerPublicIP
  • NCache Playground
    • Start-NCachePlaygroundProcess
    • Stop-NCachePlaygroundProcess
  • NCache Registration
    • Register-NCache
    • Register-NCacheEvaluation
    • Unregister-NCache
    • Get-NCacheVersion

Add-NCacheUserOrGroup - PowerShell Cmdlet

This PowerShell Cmdlet helps to add a user or group to the NCache security configuration. The security configuration in question can be a NCache node or cache security configuration in this PowerShell Cmdlet.

Note

This feature is only available in NCache Enterprise.

  • Windows PowerShell
  • Linux CLI
Add-NCacheUserOrGroup [-AccessLevel] [-CacheName] [-Server] [-UserOrGroupName] [-UserOrGroupDN] [-DomainController] [-DomainControllerPort] [-SecondaryDomainController] [-SecondaryDomainControllerPort] [-EnableSecurity] -AdminCredentials

Examples of Add-NCacheUserOrGroup - PowerShell Cmdlet

  • This PowerShell Cmdlet adds the user 'John Smith' as an NCache admin on the server with the IP address 20.200.20.11.
Add-NCacheUserOrGroup -Server 20.200.20.11 -AccessLevel Admin -AdminCredentials(Get-Credential john_smith) -UserOrGroupName john_smith -UserOrGroupDN "CN=John Smith,OU=engineers,DC=example,DC=com" -DomainController test_domain
  • This command adds the user 'John Smith' as a cache user for the 'demoCache' cache hosted on the server with the IP address 20.200.20.11. Upon successful addition of the user, NCache security is also enabled on the server.
Add-NCacheUserOrGroup -Server 20.200.20.11 -AccessLevel Cache -CacheName demoCache -AdminCredentials(Get-Credential john_smith) -UserOrGroupName john_smith -UserOrGroupDN "CN=John Smith,OU=engineers,DC=example,DC=com" -DomainController test_domain -EnableSecurity Yes
  • This command adds a group named 'Dev' as an NCache admin group on the server with IP address 20.200.20.11. Upon successful addition of the group, NCache security is also enabled on the server.
Add-NCacheUserOrGroup -Server 20.200.20.11 -AccessLevel Admin -AdminCredentials(Get-Credential john_smith) -UserOrGroupName dev -UserOrGroupDN "CN=Dev,OU=engineers,DC=example,DC=com" -DomainController test_domain -EnableSecurity Yes

Properties

Note

The parameters with asterisk (*) on their names are the required parameters and the rest are optional.

Parameters     Data Types Description Default Value
-AccessLevel* <String> Specifies the access level of the user or group being added. If you are adding a cache user, then valid value is "Cache" and for an NCache admin, the value will be "Admin". -
-CacheName <String> Specifies the name of the cache for which the user or group is being added. This parameter is required when the access level is set to "Cache". -
-Server* <String> Specifies the IP address of the NCache server to which the user or group is being added. -
-AdminCredentials* <pscredential> Specifies the credentials of an LDAP user with administrative rights on the given server. These credentials are used for authentication and authorization to perform the addition. -
-UserOrGroupName* <String> Specifies the name of the user or group being added. -
-UserOrGroupDN* <String> Specifies the Distinguished Name (DN) of the user or group being added. This DN uniquely identifies the user or group in the LDAP directory. You can specify it like this, i.e., -UserOrGroupDN "CN=Dev,OU=engineers,DC=example,DC=com" -
-DomainController* <String> Specifies the IP address or name of the server at which the domain controller is hosted. -
-DomainControllerPort <String> Specifies the port at which the domain controller is listening. 389
-SecondaryDomainController <String> Specifies the IP address or name of the server on which the secondary domain controller is hosted. -
-SecondaryDomainControllerPort <Integer> Specifies the port at which the secondary domain controller is listening. 389
-EnableSecurity <String> Specifies whether to enable security after successfully adding the user or group. Valid values are "Yes" or "No". False
add-ncacheuserorgroup [-access-level] [-cachename] [-server] [-userorgroupname] [-userorgroupdn] [-domaincontroller] [-domaincontrollerport] [-secondarydomaincontroller] [-secondarydomaincontrollerport] [-enablesecurity] [-adminuserid] [-adminpassword]

Examples of Add-NCacheUserOrGroup

  • This command adds the user 'John Smith' as an NCache admin on the server with the IP address 20.200.20.11.
add-ncacheuserorgroup -server 20.200.20.11 -accesslevel Admin -adminuserid john_smith -adminpassword pass12345 -userorgroupname john_smith -userorgroupdn "CN=John Smith,OU=engineers,DC=example,DC=com" -domaincontroller test_domain
  • This command adds the user 'John Smith' as a cache user for the 'demoCache' cache hosted on the server with the IP address 20.200.20.11. Upon successful addition of the user, NCache security is also enabled on the server.
add-ncacheuserorgroup -cachename demoCache -server 20.200.20.11 -accesslevel Cache -adminuserid john_smith -adminpassword pass12345 -userorgroupname john_smith -userorgroupdn "CN=John Smith,OU=engineers,DC=example,DC=com" -domaincontroller test_domain -enablesecurity Yes
  • This command adds a group named 'Dev' as an NCache admin group on the server with IP address 20.200.20.11. Upon successful addition of the group, NCache security is also enabled on the server.
add-ncacheuserorgroup server 20.200.20.11 -accesslevel Admin -adminuserid john_smith -adminpassword pass12345 -userorgroupname dev -userorgroupdn "CN=Dev,OU=engineers,DC=example,DC=com" -domaincontroller test_domain -enablesecurity Yes

Properties

Note

The parameters with asterisk (*) on their names are the required parameters and the rest are optional.

Parameters     Data Types Description Default Value
-accesslevel* <String> Specifies the access level of the user or group being added. If you are adding a cache user, then valid value is "Cache" and for an NCache admin, the value will be "Admin". -
-cachename <String> Specifies the name of the cache for which the user or group is being added. This parameter is required when the access level is set to "Cache". -
-server* <String> Specifies the IP address of the NCache server to which the user or group is being added. -
-adminuserid <String> Specifies the user-id of a user with administrative rights on the client node. This is required only if security is enabled on the client node. If security is disabled, this parameter is ignored. -
-adminpassword <String> Specifies the password of a user with administrative rights on the client node. This is required only if security is enabled on the client node. If security is disabled, this parameter is ignored. -
-userorgroupname* <String> Specifies the name of the user or group being added. -
-userorgroupdn* <String> Specifies the Distinguished Name (DN) of the user or group being added. This DN uniquely identifies the user or group in the LDAP directory. You can specify it like this, i.e., -UserOrGroupDN "CN=Dev,OU=engineers,DC=example,DC=com" -
-domaincontroller* <String> Specifies the IP address or name of the server at which the domain controller is hosted. -
-domaincontrollerport <Integer> Specifies the port at which the domain controller is listening. 389
-secondarydomaincontroller <Integer> Specifies the IP address or name of the server on which the secondary domain controller is hosted. -
-secondarydomaincontrollerport <Integer> Specifies the port at which the secondary domain controller is listening. 389
-enablesecurity <String> Specifies whether to enable security after successfully adding the user or group. Valid values are "Yes" or "No". False
In This Article
  • Examples of Add-NCacheUserOrGroup - PowerShell Cmdlet
  • Properties
  • Examples of Add-NCacheUserOrGroup
  • Properties

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Professional
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top