Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API Support to Parent Organization Admins to Share Users with Sub Organizations #784

Merged
merged 36 commits into from
Jan 27, 2025

Conversation

BimsaraBodaragama
Copy link
Member

@BimsaraBodaragama BimsaraBodaragama commented Jan 23, 2025

Purpose

This PR provides API support for managing user sharing in IS/Asgardeo, enabling parent organization admins to share and manage users with sub-organizations based on resource-sharing policies. This functionality addresses the gap in supporting direct user sharing from parent organizations to their sub-organizations.

Key Functionalities

This implementation introduces the following API capabilities:

  1. Selective User Share:

    • Share users selectively with specific sub-organizations, applying unique resource-sharing policies and roles for each organization.
  2. General User Share:

    • Share users across all sub-organizations using a general resource-sharing policy, with or without the same set of roles.
  3. Selective User Unshare:

    • Unshare users from specific organizations.
  4. General User Unshare:

    • Unshare users from all organizations.
  5. Retrieve Shared Organizations:

    • Retrieve the list of organizations a user has been shared with.
  6. Retrieve Shared Roles:

    • Retrieve roles assigned to a shared user in a specific organization.

Related Issue

Allow Parent Organization Admins to Share Users with Sub Organizations Based on Resource Sharing Policies with or without Roles #22331

pom.xml Outdated Show resolved Hide resolved
pom.xml Outdated Show resolved Hide resolved
@BimsaraBodaragama BimsaraBodaragama changed the title [Draft] API for User Sharing Add API Support to Parent Organization Admins to Share Users with Sub Organizations Jan 26, 2025
@BimsaraBodaragama BimsaraBodaragama marked this pull request as ready for review January 26, 2025 21:30
@BimsaraBodaragama BimsaraBodaragama self-assigned this Jan 26, 2025
@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/12980802249

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/12980802249
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/12980802249

@AnuradhaSK AnuradhaSK merged commit 4090fdb into wso2:master Jan 27, 2025
4 checks passed
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.

6 participants