For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

user

abstract fun user(configureAction: Action<in ConfigurableUserClassFilePermissions>)(source)

Modifies the permissions the owner of the file has for the file/directory.

For further details on permissions see ConfigurableUserClassFilePermissions.

Note that the provided configuration action only applies incremental modifications on top of whatever permission the user has at the moment and that the default values permissions start out are different for files and directories (see UserClassFilePermissions).

Since

8.3