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

API endpoint for getting UserProfile by username #104

Closed
jonkjetiloye opened this issue Oct 31, 2023 · 0 comments
Closed

API endpoint for getting UserProfile by username #104

jonkjetiloye opened this issue Oct 31, 2023 · 0 comments
Labels
kind/user-story Used for issues that describes functionality for our users. status/draft Status: When you create an issue before you have enough info to properly describe the issue.

Comments

@jonkjetiloye
Copy link
Member

jonkjetiloye commented Oct 31, 2023

Description

Access Management needs to be able to lookup userprofiles based on username in order to build support for delegation av rights and accesses to both enterprise users and persons identified by their username.

An endpoint has been made for the SBL bridge in order to provide this lookup until userprofile is migrated to the A3 platform:
/sblbridge/profile/api/users/?username={username}

This issue will add an API endpoint following the same structure in altinn-profile:
profile/api/v1/users/?username={username}

Additional Information

No response

Tasks

No response

Acceptance Criterias

No response

@jonkjetiloye jonkjetiloye added kind/user-story Used for issues that describes functionality for our users. status/draft Status: When you create an issue before you have enough info to properly describe the issue. labels Oct 31, 2023
jonkjetiloye pushed a commit that referenced this issue Oct 31, 2023
#104
Adds an API endpoint in altinn-profile:
profile/api/v1/users/?username={username}

which consumes the newly added SBL bridge API:
/sblbridge/profile/api/users/?username={username}
jonkjetiloye added a commit that referenced this issue Nov 7, 2023
* API endpoint for getting UserProfile by username
#104
Adds an API endpoint in altinn-profile:
profile/api/v1/users/?username={username}

which consumes the newly added SBL bridge API:
/sblbridge/profile/api/users/?username={username}

* fixed øæå testdata issue

* - Moved implementation into separate controller for internal use only
- Simplified implementation to a single POST endpoint with lookup model

* Forgot to set controller endpoints hidden from swagger

* Fixed wrong namespace on UserProfileLookup model

---------

Co-authored-by: Jon Kjetil Øye <acn-joye@ai-dev.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/user-story Used for issues that describes functionality for our users. status/draft Status: When you create an issue before you have enough info to properly describe the issue.
Projects
None yet
Development

No branches or pull requests

2 participants