Giter Club home page Giter Club logo

Comments (7)

kwin avatar kwin commented on June 22, 2024

Compare with AdobeDocs/cloudmanager-api-docs#260.

from aio-cli-plugin-cloudmanager.

kwin avatar kwin commented on June 22, 2024

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.

kwin avatar kwin commented on June 22, 2024

@zygw How are the new content copy related operations supposed to be executed with service accounts on AEMaaCS?

from aio-cli-plugin-cloudmanager.

kwin avatar kwin commented on June 22, 2024

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.

kwin avatar kwin commented on June 22, 2024

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.

imaadghouri85 avatar imaadghouri85 commented on June 22, 2024

Hello @kwin @zygw

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

from aio-cli-plugin-cloudmanager.

zygw avatar zygw commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.