Assets
Will be available in version 2.71.1
In order to support a more flexible solution for identity based access management, not tied to complex product structures, Assets are new solution that will enable clients to specify what the user has access to themselves, without any explicit requirements from Schibsted account.
Via POST /user/{id}/asset/{assetId}
endpoint client is able to create (or modify) access to asset for user.
- {id} can be user_id or UUID
- {assetId} must be non-numeric identifier see more assetId type
Use cases
Use Cases for handling access checks for NON-Schibsted account assets are many:
- check if you have access to a specific purchased e-book
- check if you have purchased a Finn-ad addon
- check if you have paid for an account upgrade
- check if you have access to a restricted feature (like disabling users on the client)
- check if you have access to some product not currently defined in the Schibsted account product structure because the product structure doesn’t match the client’s product structure requirements
- check if you have access to a specific news article
Relevant endpoints
GET
/user/{id}/asset/{assetId}POST
/user/{id}/asset/{assetId}DELETE
/user/{id}/asset/{assetId}GET
/user/{id}/assets/{assetIds}GET
/user/{id}/assetsGET
/asset/{id}/users/count
Help us improve
Did you spot an error? Or maybe you just have a suggestion for how we can improve? Leave a comment, or better yet, send us a pull request on GitHub to fix it (in-browser editing, only takes a moment).
Comments/feedback
Do you have questions, or just want to contribute some newly gained insight? Want to share an example? Please leave a comment. Our team reads and responds to every question. Additionally, your experience can help others using Schibsted account, and it can help us continuously improve our documentation.