Skip to content

Conversation

@asaf-avron-ctera
Copy link
Collaborator

@asaf-avron-ctera asaf-avron-ctera commented Jan 20, 2026

Summary

Adds the ability to add and remove users from zones in the ctera-python-sdk.

Jira: SDK-344

Changes

  • Add add_users() method to the Zones class to add users to a zone
  • Add remove_users() method to the Zones class to remove users from a zone
  • Uses ZoneUserDelta structure with user uid values
  • Add unit tests for both methods

Usage

from cterasdk.core.types import UserAccount

# Add users to a zone
admin.cloudfs.zones.add_users('MyZone', [UserAccount('alice'), UserAccount('bob')])

# Remove users from a zone
admin.cloudfs.zones.remove_users('MyZone', [UserAccount('alice')])

Test Plan

  • Unit tests added and passing (13 tests in test_cloudfs_zones.py)
  • Integration tests verified against portal 192.168.38.57

SDK-344: Implements zone user management capability.

- Add add_users() method to add users to a zone by their UserAccount
- Add remove_users() method to remove users from a zone
- Uses ZoneUserDelta structure with user uid values
- Add unit tests for both methods
@asaf-avron-ctera
Copy link
Collaborator Author

Closing in favor of a new PR from the main repo branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant