Comments (7)
Compare with AdobeDocs/cloudmanager-api-docs#260.
from aio-cli-plugin-cloudmanager.
As the JWT token for AEM is managed outside the Adobe Developers Console but inside AEM Developer's Console (https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/developing/generating-access-tokens-for-server-side-apis.html?lang=en#fetch-the-aem-as-a-cloud-service-credentials) it seems it is currently impossible to generate one JWT token with the necessary permissions.
from aio-cli-plugin-cloudmanager.
@zygw How are the new content copy related operations supposed to be executed with service accounts on AEMaaCS?
from aio-cli-plugin-cloudmanager.
Ok, it seems that I need to add the API credentials for the generated service account via the adminconsole as outlined in https://helpx.adobe.com/enterprise/using/manage-developers.html. That is only possible for author tiers though as there is no dedicated administrator product profile for AEM publish.
from aio-cli-plugin-cloudmanager.
Also according to the README (https://github.com/adobe/aio-cli-plugin-cloudmanager#permissions)
To see the permissions required for a specific command, you can also run any command with the flag --permissions
But executing aio cloudmanager:content-flow:create --permissions
results in
To execute cloudmanager:content-flow:create, one of the following product profiles is required: Deployment Manager.
› Error: Missing 3 required args:
› contentSetId Id of content set to use
› destEnvironmentId The destination environment id
› includeACL Include ACLs
› See more help with --help
from aio-cli-plugin-cloudmanager.
We are also facing the same issue when trying to execute below command
aio cloudmanager create-content-flow $ENVIRONMENTID $CONTENTSETID $DESTENVIRONMENTID false
We have created a cloud manager API https://developer.adobe.com/ console and added deployment manager role in it (see attached) but still getting permission issues. Any clue ?
Here is the error:
Creating content flow for pid: 85402 env: **** values: {"contentSetId":"***","destEnvironmentId":"****","includeACL":"false","tier":"author","mergeExcludePaths":"false"}.... failed
--
215 | › Error: [CloudManagerSDK:ERROR_CREATE_CONTENTFLOW] Unable to create content
216 | › flow for program https://cloudmanager.adobe.io/api/program/*****/environm
217 | › ent/*****/contentFlow (403 Forbidden) - User unauthorized.(s): User does
218 | › not have the necessary permissions for this operation.
219 | › Code: ERROR_CREATE_CONTENTFLOW
220 | › Reference: Request Id: zbycXFlVShwuAnZ6qKxA4p9UZzpfr84f. Timestamp:
221 | › 2024-01-29T01:55:45.400Z
![Screenshot 2024-01-28 at 9 06 32 PM](https://private-user-images.githubusercontent.com/108291084/300315081-a3d7aa66-5e68-47a4-b7f8-44bc7f286642.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgxOTMyOTUsIm5iZiI6MTcxODE5Mjk5NSwicGF0aCI6Ii8xMDgyOTEwODQvMzAwMzE1MDgxLWEzZDdhYTY2LTVlNjgtNDdhNC1iN2Y4LTQ0YmM3ZjI4NjY0Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxMlQxMTQ5NTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zM2EwYjE5ODAyMTVmYWYyMGIyOWNiZThiMDIxM2I5MjYyM2YzMGIzMGE4OGIxNGI2ODRhZTFlZGZjMGM4NDYzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.xCKr8jWsNStHzeuvG0ExJ7FhEsKms5r511pILkIIDFo)
from aio-cli-plugin-cloudmanager.
The user must be an admin in the source and destination environment. The Cloud Manager roles only gate the availability of the API. Since the content copy reads/writes arbitrary paths, the user running the copy must have admin privilege in the two AEM envs. See Permissions table in:
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/developer-tools/content-copy.html?lang=en
from aio-cli-plugin-cloudmanager.
Related Issues (20)
- execution:get-step-details cannot fetch front-end pipeline details
- e2e tests failing HOT 1
- [MODULE_NOT_FOUND] Error Plugin: @adobe/aio-cli: Cannot find module '@azure/identity' HOT 1
- AEMaaCS version information: being able to determine current version, latest version and being able to upgrade envrionments (dev) though CLI
- Offer an option to request the RAW Cloudmanager API feedback in AIO-CLI-PLUGIN-CLOUDMANAGER
- Allow multiple IPs to be added on creating an allowlist HOT 1
- HTTP/HTTPS Proxy Agent Logic wrong in aio-cli-plugin-cloudmanager: dependency on old library version HOT 2
- Release job runner blocked in pending HOT 1
- Allow cli access content set and content flow APIs HOT 9
- Support OAuth Server-to-Server credential HOT 8
- Support executing content copy operations HOT 2
- fix(release): Update release job to ubuntu-latest HOT 1
- How to authenticate with aio for Oauth server-to-server credential (without browser authentication) like old/depreicated Service account(JWT) ? HOT 14
- content-flow:create: Support new flag mergeExcludePaths
- Has a developer I would like to create a contentset via aio cli HOT 1
- pipeline:update: Support changing the Code Location HOT 1
- pipeline:update: Support changing the Prod Deploy Approval step
- Support service for pipeline variables/secrets HOT 1
- OAuth Configuration Documentation: "client_secret" is "client_secrets" - adapt documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aio-cli-plugin-cloudmanager.